dagger-components/examples/htmx/src/main.rs
kjuulh a7656a9da1
Some checks reported errors
continuous-integration/drone/push Build was killed
feat: update dagger 0.11.7
Signed-off-by: kjuulh <contact@kjuulh.io>
2024-08-01 22:19:59 +02:00

19 lines
500 B
Rust

use std::path::PathBuf;
#[tokio::main]
pub async fn main() -> eyre::Result<()> {
dagger_sdk::connect(|client| async move {
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(())
})
.await?;
Ok(())
}