Official Rust Pachyderm client. This library provides low-level (auto-generated) bindings to our gRPC services, with support for async/await thanks to tonic. It should work on rust stable 1.39+, as well as nightly/beta.
Here's an example that creates a repo and adds a file:
``rust
//! This creates a PFS repo called
hello-world`
extern crate pachyderm; extern crate tokio; extern crate tonic;
use std::error::Error;
use pachyderm::pfs::{client::ApiClient as PfsClient, CreateRepoRequest, Repo};
async fn main() -> Result<(), Box
let request = tonic::Request::new(CreateRepoRequest {
repo: Some(Repo {
name: "hello-world".into()
}),
description: "".into(),
update: false
});
let response = client.create_repo(request).await?;
println!("Response: {:?}", response);
Ok(())
} ```
hello-world
. To run: cargo run --example hello_world
cargo run --example opencv