feat: with rust build and test
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
16
examples/rust-test/src/main.rs
Normal file
16
examples/rust-test/src/main.rs
Normal file
@@ -0,0 +1,16 @@
|
||||
use dagger_rust::{build::RustVersion, test::RustTest};
|
||||
|
||||
#[tokio::main]
|
||||
pub async fn main() -> eyre::Result<()> {
|
||||
let client = dagger_sdk::connect().await?;
|
||||
RustTest::new(client.clone())
|
||||
.test(
|
||||
Some("testdata"),
|
||||
RustVersion::Nightly,
|
||||
&["crates/*"],
|
||||
&["openssl"],
|
||||
)
|
||||
.await?;
|
||||
|
||||
Ok(())
|
||||
}
|
Reference in New Issue
Block a user