#google-cloud #access-token #service-account #access #token #gcp #server-api

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

#496 in Asynchronous

Download history 6/week @ 2024-07-29 17/week @ 2024-09-16 18/week @ 2024-09-23 7/week @ 2024-09-30 2/week @ 2024-10-14 34/week @ 2024-10-28 15/week @ 2024-11-04

51 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);
        }
    }

}


lib.rs:

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–21MB
~309K SLoC