Skip to content

aembke/flipt-rust

 
 

Repository files navigation

Flipt Rust Library

crates.io hardening

Documentation

API documentation is available at https://www.flipt.io/docs/reference/overview.

SDK documentation is available at https://docs.rs/crate/flipt/latest.

Status

This SDK is considered in 'hardening' status. We will try to minimize breaking changes, however there still may be breaking changes between versions without a major version update.

We recommend pinning the package version to a specific version in your Cargo.toml file. This way, you can install the same version each time without breaking changes unless you are intentionally looking for the latest version.

Install

# Cargo.toml
[dependencies]
flipt = "0.x.0"

Usage

use flipt::api::flag::{Flag, FlagClient, FlagGetRequest};
use flipt::api::ApiClient;
use flipt::Config;

#[tokio::main]
async fn main() -> Result<(), Error> {
    let config = Config::new_from_env().expect("config");
    let client = ApiClient::new(config).expect("build client");

    let flag = client.flags().get(&FlagGetRequest{
      namespace_key: None,
      key: "flag-a",
    }).await
}

Contributing

TODO

About

Official Rust SDK for Flipt

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 98.7%
  • Shell 1.3%