13 releases
0.1.1-rc.0 | Feb 18, 2022 |
---|---|
0.1.0 | Feb 14, 2022 |
0.1.0-rc.7 | Jan 28, 2022 |
#28 in #powered
32 downloads per month
21KB
423 lines
OomStore Client (Rust)
This crate provides an easy-to-use async rust client for OomStore, a lightweight and fast feature store powered by go. It uses gRPC protocol to communicate with the oomagent server under the hood.
Example
use oomclient::Client;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let mut client = Client::with_default_embedded_oomagent().await?;
let features = vec!["account.state".into(), "txn_stats.count_7d".into()];
let response = client.online_get_raw("48", features.clone()).await?;
println!("RESPONSE={:#?}", response);
let response = client.online_get("48", features).await?;
println!("RESPONSE={:#?}", response);
Ok(())
}
More examples can be found in examples
directory of the project repo.
Note
You need to install the oomagent first following the guide.
Development
Install cargo-make and run cargo make
.
License
Apache-2.0
Dependencies
~8–16MB
~212K SLoC