2023-08-12 19:50:30 +02:00
|
|
|
use std::path::PathBuf;
|
|
|
|
|
|
|
|
#[tokio::main]
|
|
|
|
pub async fn main() -> eyre::Result<()> {
|
2024-08-01 22:19:59 +02:00
|
|
|
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?;
|
2023-08-12 19:50:30 +02:00
|
|
|
|
2024-08-01 22:19:59 +02:00
|
|
|
let _full_src = dag
|
|
|
|
.get_rust_target_src(&PathBuf::from("."), client.container(), crates)
|
|
|
|
.await?;
|
2023-08-12 19:50:30 +02:00
|
|
|
|
2024-08-01 22:19:59 +02:00
|
|
|
Ok(())
|
|
|
|
})
|
|
|
|
.await?;
|
2023-08-12 19:50:30 +02:00
|
|
|
Ok(())
|
|
|
|
}
|