hashicorp_vault 0.5.0

HashiCorp Vault API client for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
extern crate hashicorp_vault as vault;

fn main() {
    let host = "http://localhost:8200";
    let token = "test12345";
    let client = vault::Client::new(host, token).unwrap();

    let _ = client.set_secret("foo", "bar");

    let secret = client.get_secret("foo").unwrap();

    println!("Secret is \"bar\": {}", secret);
}