2023-08-12 19:50:30 +02:00
|
|
|
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?;
|
|
|
|
|
2023-08-12 20:05:27 +02:00
|
|
|
let _full_src = dag
|
|
|
|
.get_rust_target_src(&PathBuf::from("."), client.container(), crates)
|
|
|
|
.await?;
|
2023-08-12 19:50:30 +02:00
|
|
|
|
|
|
|
Ok(())
|
|
|
|
}
|