| Crates.io | gcp_access_token |
| lib.rs | gcp_access_token |
| version | 0.1.4 |
| created_at | 2021-12-29 19:58:23.740607+00 |
| updated_at | 2024-06-25 12:03:31.670972+00 |
| description | this is a pure rust implimentation to get google cloud access token for servers with service account credentials. |
| homepage | https://github.com/gzbakku/gcp-access-token |
| repository | https://github.com/gzbakku/gcp-access-token |
| max_upload_size | |
| id | 504996 |
| size | 46,142 |
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);
}
}
}