Bullet Train allows you to manage feature flags and remote config across multiple projects, environments and organisations.
This is the SDK for Rust for https://bullet-train.io/.
For full documentation visit https://docs.bullet-train.io
Sign Up and create account at https://bullet-train.io/
In your application initialise the BulletTrain client with your API key
rust
let bt = bullettrain::Client::new("<Your API Key>");
To check if a feature flag exists and is enabled:
rust
let bt = bullettrain::Client::new("<Your API Key>");
if bt.feature_enabled("cart_abundant_notification_ab_test_enabled")? {
println!("Feature enabled");
}
To get the configuration value for feature flag value:
```rust use bullettrain::{Client,Value};
let bt = bullettrain::Client::new("
if let Some(Value::String(s)) = bt.getvalue("cartabundantnotificationab_test")? { println!("{}", s); } ```
More examples can be found in the Tests
By default, client is using default configuration. You can override configuration as follows:
rust
let bt = bullettrain::Client {
api_key: String::from("secret key"),
base_uri: String::from("https://features.on.my.own.server/api/v1/"),
};
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
If you encounter a bug or feature request we would like to hear about it. Before you submit an issue please search existing issues in order to prevent duplicates.
If you have any questions about our projects you can email support@bullet-train.io.