dagger-components/examples/rust-src/src/main.rs
kjuulh 776db7274a
All checks were successful
continuous-integration/drone/push Build is passing
fix: ci
Signed-off-by: kjuulh <contact@kjuulh.io>
2023-08-12 18:08:04 +00:00

17 lines
443 B
Rust

use std::path::PathBuf;
#[tokio::main]
pub async fn main() -> eyre::Result<()> {
let client = dagger_sdk::connect().await?;
let crates = ["some-crate"];
let dag = dagger_rust::source::RustSource::new(client.clone());
let (_src, _rust_src) = dag.get_rust_src(None::<PathBuf>, crates).await?;
let _full_src = dag
.get_rust_target_src(&PathBuf::from("."), client.container(), crates)
.await?;
Ok(())
}