26 个版本
0.11.10 | 2024 年 8 月 1 日 |
---|---|
0.9.8 | 2024 年 2 月 1 日 |
0.3.2 | 2023 年 10 月 21 日 |
0.2.22 | 2023 年 4 月 30 日 |
0.2.19 | 2023 年 3 月 14 日 |
#210 在 开发工具 中排名
914 每月下载量
用于 2 crate
2.5MB
8K SLoC
dagger-sdk
为 Rust 编写的 Rust 刺刀 SDK。
示例
查看 示例
运行方式
cargo run --example first-pipeline
示例与 examples 目录中每个目录的名称匹配
安装
简单安装
cargo add dagger-sdk
用法
#[tokio::main]
async fn main() -> eyre::Result<()> {
let client = dagger_sdk::connect().await?;
let version = client
.container()
.from("golang:1.19")
.with_exec(vec!["go", "version"])
.stdout().await?;
println!("Hello from Dagger and {}", version.trim());
Ok(())
}
像普通应用程序一样运行
cargo run
依赖项
~12–26MB
~433K SLoC