sdk/rust/README.md
Warning This SDK is experimental. Please do not use it for anything mission-critical. Possible issues include:
Please report any issues you encounter. We appreciate and encourage contributions. If you are a Rust developer interested in contributing to this SDK, we welcome you!
dagger runid().await? from passing to other dagger graphs, this should make
the design much cleanerArc<Query> model into something more extensibleSee examples.
Run them like so:
cargo run --example first-pipeline
The examples match the folder name in each directory in examples.
Simply install like:
cargo add dagger-sdk
#[tokio::main]
async fn main() -> eyre::Result<()> {
dagger_sdk::connect(|client| async move {
let version = client
.container()
.from("golang:1.19")
.with_exec(vec!["go", "version"])
.stdout()
.await?;
println!("Hello from Dagger and {}", version.trim());
Ok(())
})
.await?;
Ok(())
}
And run it like a normal application:
cargo run
See CONTRIBUTING
or just cargo make codegen