6 releases

0.2.0 Jul 25, 2023
0.1.4 Dec 22, 2022
0.1.3 Jul 24, 2022

#1412 in HTTP server

26 downloads per month

MIT license

12KB
262 lines

Zero Rust SDK

Rust SDK for Zero. Provides a clear and simple interface for accessing the secrets manager GraphQL API.

Installation

Add this to your Cargo.toml:

[dependencies]
zero-sdk = "0.2.0"

Usage

use zero_sdk::{Arguments, Zero};

let secrets = Zero::new(Arguments {
    pick: Some(vec![String::from("my-secret")]),
    token: String::from("my-zero-token-from-env"),
    caller_name: Some(String::from("cicd")),
})
.unwrap()
.fetch();

Dependencies

~27–40MB
~733K SLoC