#access-token #gcp #server-api #api-token #api-bindings

bin+lib gcp_access_token

this is a pure rust implimentation to get google cloud access token for servers with service account credentials

5 releases

0.1.4 Jun 25, 2024
0.1.3 Oct 3, 2023
0.1.2 Oct 3, 2023
0.1.1 Dec 29, 2021
0.1.0 Dec 29, 2021

#916 in Asynchronous

38 downloads per month
Used in fast_firestore

GPL-3.0 license

14KB
233 lines

gcp_access_token - rust

this is a pure rust implimentation to get google cloud access token for servers with service account credentials.

use gcp_access_token;

#[tokio::main]
async fn main() {

    match gcp_access_token::generator::init("./credentials.json".to_string()).await{
        Ok(v)=>{
            println!("token successfull : {}",v);
        },
        Err(_e)=>{
            println!("!!! failed-token : {:?}",_e);
        }
    }

}

Dependencies

~9–26MB
~331K SLoC