mirror of
https://github.com/kjuulh/dagger-rs.git
synced 2025-08-18 13:03:28 +02:00
Compare commits
2 Commits
fix/readme
...
feat/add-t
Author | SHA1 | Date | |
---|---|---|---|
7205af017e | |||
e125adec98
|
@@ -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.
|
||||||
|
Reference in New Issue
Block a user