Compare commits

..

2 Commits

Author SHA1 Message Date
7205af017e Merge branch 'main' into feat/add-tests-to-sdk 2023-02-25 02:27:36 +01:00
e125adec98 feat: add tests to sdk 2023-02-25 02:27:01 +01:00

View File

@@ -27,7 +27,7 @@ cargo add dagger-sdk
```rust ```rust
#[tokio::main] #[tokio::main]
async fn main() -> eyre::Result<()> { async fn main() -> eyre::Result<()> {
let client = dagger_sdk::connect().await?; let client = dagger_sdk::connect()?;
let version = client let version = client
.container() .container()
@@ -46,3 +46,9 @@ And run it like a normal application:
```bash ```bash
cargo run cargo run
``` ```
### Disclaimer
You are free to use something else than `tokio`, I haven't tested it with
anything else, but it should work with any other runtime. We don't rely on it
specifically. That might change in the future though.