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 |
#483 in Asynchronous
31 downloads per month
Used in fast_firestore
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
~8–20MB
~309K SLoC