mirror of
https://github.com/kjuulh/dagger-rs.git
synced 2025-08-17 20:53:29 +02:00
Compare commits
10 Commits
dagger-sdk
...
dagger-cod
Author | SHA1 | Date | |
---|---|---|---|
f869e574dd
|
|||
921e61b5e2
|
|||
17ec62a5d5
|
|||
803cfc4f8c
|
|||
8385aa8a15
|
|||
60f2cb2f2e
|
|||
30b7511e45
|
|||
06e2638e1f
|
|||
48433cf368
|
|||
fc01755b99
|
64
Cargo.lock
generated
64
Cargo.lock
generated
@@ -114,7 +114,7 @@ version = "0.1.0"
|
||||
dependencies = [
|
||||
"clap",
|
||||
"color-eyre",
|
||||
"dagger-sdk 0.2.9",
|
||||
"dagger-sdk 0.2.10",
|
||||
"eyre",
|
||||
"tokio",
|
||||
]
|
||||
@@ -246,10 +246,10 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "dagger-codegen"
|
||||
version = "0.2.5"
|
||||
version = "0.2.6"
|
||||
dependencies = [
|
||||
"convert_case",
|
||||
"dagger-core 0.2.3",
|
||||
"dagger-core 0.2.4",
|
||||
"eyre",
|
||||
"genco",
|
||||
"itertools",
|
||||
@@ -258,29 +258,6 @@ dependencies = [
|
||||
"serde_json",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "dagger-core"
|
||||
version = "0.2.3"
|
||||
dependencies = [
|
||||
"clap",
|
||||
"dirs",
|
||||
"eyre",
|
||||
"flate2",
|
||||
"genco",
|
||||
"graphql-introspection-query",
|
||||
"graphql_client",
|
||||
"hex",
|
||||
"hex-literal",
|
||||
"platform-info",
|
||||
"reqwest",
|
||||
"serde",
|
||||
"serde_json",
|
||||
"sha2",
|
||||
"tar",
|
||||
"tempfile",
|
||||
"tokio",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "dagger-core"
|
||||
version = "0.2.3"
|
||||
@@ -306,6 +283,29 @@ dependencies = [
|
||||
"tokio",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "dagger-core"
|
||||
version = "0.2.4"
|
||||
dependencies = [
|
||||
"clap",
|
||||
"dirs",
|
||||
"eyre",
|
||||
"flate2",
|
||||
"genco",
|
||||
"graphql-introspection-query",
|
||||
"graphql_client",
|
||||
"hex",
|
||||
"hex-literal",
|
||||
"platform-info",
|
||||
"reqwest",
|
||||
"serde",
|
||||
"serde_json",
|
||||
"sha2",
|
||||
"tar",
|
||||
"tempfile",
|
||||
"tokio",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "dagger-rs"
|
||||
version = "0.2.10"
|
||||
@@ -313,7 +313,7 @@ dependencies = [
|
||||
"clap",
|
||||
"color-eyre",
|
||||
"dagger-codegen",
|
||||
"dagger-core 0.2.3",
|
||||
"dagger-core 0.2.4",
|
||||
"dirs",
|
||||
"eyre",
|
||||
"flate2",
|
||||
@@ -334,12 +334,12 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "dagger-sdk"
|
||||
version = "0.2.9"
|
||||
version = "0.2.10"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "8480af5a914d5ada1ff7fb8665b99b393e076acf8138af982170b2071cb3a9e3"
|
||||
checksum = "af3b3404f52ddf367998475bc48e5a08699950ee7ba54ba334b7ffe1681df0c5"
|
||||
dependencies = [
|
||||
"base64",
|
||||
"dagger-core 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"dagger-core 0.2.3",
|
||||
"derive_builder",
|
||||
"eyre",
|
||||
"futures",
|
||||
@@ -351,10 +351,10 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "dagger-sdk"
|
||||
version = "0.2.10"
|
||||
version = "0.2.11"
|
||||
dependencies = [
|
||||
"base64",
|
||||
"dagger-core 0.2.3",
|
||||
"dagger-core 0.2.4",
|
||||
"derive_builder",
|
||||
"eyre",
|
||||
"futures",
|
||||
|
@@ -28,14 +28,11 @@ eyre = "0.6.8"
|
||||
flate2 = { version = "1.0.25", features = ["zlib"] }
|
||||
genco = "0.17.3"
|
||||
graphql-introspection-query = "0.2.0"
|
||||
graphql_client = { version = "0.12.0", features = [
|
||||
"reqwest",
|
||||
"reqwest-blocking",
|
||||
] }
|
||||
graphql_client = { version = "0.12.0", features = ["reqwest"] }
|
||||
hex = "0.4.3"
|
||||
hex-literal = "0.3.4"
|
||||
platform-info = "1.0.2"
|
||||
reqwest = { version = "0.11.14", features = ["stream", "blocking", "deflate"] }
|
||||
reqwest = { version = "0.11.14", features = ["stream", "deflate"] }
|
||||
serde = { version = "1.0.152", features = ["derive"] }
|
||||
serde_json = "1.0.93"
|
||||
sha2 = "0.10.6"
|
||||
|
73
ci/CHANGELOG.md
Normal file
73
ci/CHANGELOG.md
Normal file
@@ -0,0 +1,73 @@
|
||||
# Changelog
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## v0.1.0 (2023-02-20)
|
||||
|
||||
<csr-id-06e2638e1fec0579d992792b94838629739bb1f0/>
|
||||
<csr-id-48433cf36884ec9fa4cfed8bc5d4b3e8422c0ab9/>
|
||||
<csr-id-45d646203704aed317ee2273b825ae708e83ca32/>
|
||||
<csr-id-c35c104b49dc2f4456ed18e353bf8d4017cff640/>
|
||||
|
||||
### Chore
|
||||
|
||||
- <csr-id-06e2638e1fec0579d992792b94838629739bb1f0/> with actual await on connect
|
||||
- <csr-id-48433cf36884ec9fa4cfed8bc5d4b3e8422c0ab9/> with dagger v0.2.10
|
||||
- <csr-id-45d646203704aed317ee2273b825ae708e83ca32/> with async/await
|
||||
- <csr-id-c35c104b49dc2f4456ed18e353bf8d4017cff640/> update ci to use dagger-sdk v0.2.6
|
||||
|
||||
### Documentation
|
||||
|
||||
- <csr-id-30b7511e454d4695cc1106a3d303b20aa8647fe4/> add changelog
|
||||
|
||||
### New Features
|
||||
|
||||
- <csr-id-691ecfbf52fa24a466d554b7b9701d67c33a42a5/> ci with dagger v0.2.2
|
||||
- <csr-id-f42da8416a5450c7c3c924353c3cc9112afd18f0/> with sccache
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- <csr-id-f40ba9b40312a66b7699209fdddc0153ef139931/> with older version of dagger-sdk
|
||||
- <csr-id-02006d40fc2c0383e0412c15c36db9af7eda991f/> without phantom data
|
||||
- <csr-id-199fe16dbf426f287a7a5237c25bc16a4cae49bc/> update rust crate dagger-sdk to 0.2.1
|
||||
- <csr-id-25fb9d4f24af8e7d6d81463c19a07a718b8a312a/> with secret
|
||||
- <csr-id-d72313051b9b46a6eeaa909a11850b3d8fc75e81/> with test changes
|
||||
|
||||
### Commit Statistics
|
||||
|
||||
<csr-read-only-do-not-edit/>
|
||||
|
||||
- 16 commits contributed to the release over the course of 2 calendar days.
|
||||
- 12 commits were understood as [conventional](https://www.conventionalcommits.org).
|
||||
- 2 unique issues were worked on: [#7](https://github.com/kjuulh/dagger-rs/issues/7), [#8](https://github.com/kjuulh/dagger-rs/issues/8)
|
||||
|
||||
### Commit Details
|
||||
|
||||
<csr-read-only-do-not-edit/>
|
||||
|
||||
<details><summary>view details</summary>
|
||||
|
||||
* **[#7](https://github.com/kjuulh/dagger-rs/issues/7)**
|
||||
- add ci ([`4ce58a4`](https://github.com/kjuulh/dagger-rs/commit/4ce58a418c0ccef6cc0bfbaa878453f03c02dffb))
|
||||
* **[#8](https://github.com/kjuulh/dagger-rs/issues/8)**
|
||||
- feature with workspace ([`03e022f`](https://github.com/kjuulh/dagger-rs/commit/03e022fcaccd30ef0566dcfe31beb3473706bd1d))
|
||||
* **Uncategorized**
|
||||
- add changelog ([`30b7511`](https://github.com/kjuulh/dagger-rs/commit/30b7511e454d4695cc1106a3d303b20aa8647fe4))
|
||||
- with actual await on connect ([`06e2638`](https://github.com/kjuulh/dagger-rs/commit/06e2638e1fec0579d992792b94838629739bb1f0))
|
||||
- with dagger v0.2.10 ([`48433cf`](https://github.com/kjuulh/dagger-rs/commit/48433cf36884ec9fa4cfed8bc5d4b3e8422c0ab9))
|
||||
- with older version of dagger-sdk ([`f40ba9b`](https://github.com/kjuulh/dagger-rs/commit/f40ba9b40312a66b7699209fdddc0153ef139931))
|
||||
- with async/await ([`45d6462`](https://github.com/kjuulh/dagger-rs/commit/45d646203704aed317ee2273b825ae708e83ca32))
|
||||
- update ci to use dagger-sdk v0.2.6 ([`c35c104`](https://github.com/kjuulh/dagger-rs/commit/c35c104b49dc2f4456ed18e353bf8d4017cff640))
|
||||
- without phantom data ([`02006d4`](https://github.com/kjuulh/dagger-rs/commit/02006d40fc2c0383e0412c15c36db9af7eda991f))
|
||||
- ci with dagger v0.2.2 ([`691ecfb`](https://github.com/kjuulh/dagger-rs/commit/691ecfbf52fa24a466d554b7b9701d67c33a42a5))
|
||||
- with bin cache ([`3cb83bb`](https://github.com/kjuulh/dagger-rs/commit/3cb83bb79ceda52a0bf459850252e3902b7352fa))
|
||||
- update rust crate dagger-sdk to 0.2.1 ([`199fe16`](https://github.com/kjuulh/dagger-rs/commit/199fe16dbf426f287a7a5237c25bc16a4cae49bc))
|
||||
- with secret ([`25fb9d4`](https://github.com/kjuulh/dagger-rs/commit/25fb9d4f24af8e7d6d81463c19a07a718b8a312a))
|
||||
- with sccache ([`f42da84`](https://github.com/kjuulh/dagger-rs/commit/f42da8416a5450c7c3c924353c3cc9112afd18f0))
|
||||
- with test changes ([`d723130`](https://github.com/kjuulh/dagger-rs/commit/d72313051b9b46a6eeaa909a11850b3d8fc75e81))
|
||||
- add ci ([`468bca4`](https://github.com/kjuulh/dagger-rs/commit/468bca4a69ec321b3ae1304d29d1be66a921a7db))
|
||||
</details>
|
||||
|
@@ -8,6 +8,6 @@ edition = "2021"
|
||||
[dependencies]
|
||||
clap = "4.1.6"
|
||||
color-eyre = "0.6.2"
|
||||
dagger-sdk = "0.2.6"
|
||||
dagger-sdk = "0.2.10"
|
||||
eyre = "0.6.8"
|
||||
tokio = { version = "1.25.0", features = ["full"] }
|
||||
|
@@ -12,7 +12,7 @@ async fn main() -> eyre::Result<()> {
|
||||
.subcommand(clap::Command::new("release"))
|
||||
.get_matches();
|
||||
|
||||
let client = dagger_sdk::connect()?;
|
||||
let client = dagger_sdk::connect().await?;
|
||||
|
||||
match matches.subcommand() {
|
||||
Some(("pr", _)) => {
|
||||
|
@@ -5,6 +5,33 @@ All notable changes to this project will be documented in this file.
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## v0.2.6 (2023-02-20)
|
||||
|
||||
<csr-id-803cfc4f8c4d72ab7d011be5523b3bfc6039de39/>
|
||||
|
||||
### Chore
|
||||
|
||||
- <csr-id-803cfc4f8c4d72ab7d011be5523b3bfc6039de39/> ran clippy
|
||||
|
||||
### Commit Statistics
|
||||
|
||||
<csr-read-only-do-not-edit/>
|
||||
|
||||
- 2 commits contributed to the release.
|
||||
- 1 commit was understood as [conventional](https://www.conventionalcommits.org).
|
||||
- 0 issues like '(#ID)' were seen in commit messages
|
||||
|
||||
### Commit Details
|
||||
|
||||
<csr-read-only-do-not-edit/>
|
||||
|
||||
<details><summary>view details</summary>
|
||||
|
||||
* **Uncategorized**
|
||||
- Release dagger-core v0.2.4, dagger-codegen v0.2.6, dagger-sdk v0.2.11 ([`17ec62a`](https://github.com/kjuulh/dagger-rs/commit/17ec62a5d58232ff57391523b9851fb7b07d02ab))
|
||||
- ran clippy ([`803cfc4`](https://github.com/kjuulh/dagger-rs/commit/803cfc4f8c4d72ab7d011be5523b3bfc6039de39))
|
||||
</details>
|
||||
|
||||
## v0.2.5 (2023-02-19)
|
||||
|
||||
### New Features
|
||||
@@ -15,21 +42,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
```rust
|
||||
fn main() -> eyre::Result<()> {
|
||||
// ...
|
||||
// ...
|
||||
|
||||
client.container().from("rust").publish("somewhere")?;
|
||||
client.container().from("rust").publish("somewhere")?;
|
||||
|
||||
// ...
|
||||
// ...
|
||||
}
|
||||
|
||||
// to
|
||||
|
||||
async fn main() -> eyre::Result<()> {
|
||||
// ...
|
||||
// ...
|
||||
|
||||
client.container().from("rust").publish("somewhere").await?;
|
||||
client.container().from("rust").publish("somewhere").await?;
|
||||
|
||||
// ...
|
||||
// ...
|
||||
}
|
||||
```
|
||||
|
||||
@@ -37,7 +64,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
<csr-read-only-do-not-edit/>
|
||||
|
||||
- 2 commits contributed to the release.
|
||||
- 3 commits contributed to the release.
|
||||
- 2 commits were understood as [conventional](https://www.conventionalcommits.org).
|
||||
- 0 issues like '(#ID)' were seen in commit messages
|
||||
|
||||
@@ -48,6 +75,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
<details><summary>view details</summary>
|
||||
|
||||
* **Uncategorized**
|
||||
- Release dagger-sdk v0.2.8, dagger-codegen v0.2.5 ([`0499024`](https://github.com/kjuulh/dagger-rs/commit/04990247ba8e9d0555847f582fef14849dbedebf))
|
||||
- add documentation strings ([`978ede6`](https://github.com/kjuulh/dagger-rs/commit/978ede68ae52f5b5150a2aa45b8d6e1fbbbee2f4))
|
||||
- Use async runtime instead of blocking. ([`9be6f43`](https://github.com/kjuulh/dagger-rs/commit/9be6f435d9ea39f31a8906e55dbd3e8b1e5ec598))
|
||||
</details>
|
||||
|
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "dagger-codegen"
|
||||
version = "0.2.5"
|
||||
version = "0.2.6"
|
||||
edition = "2021"
|
||||
readme = "README.md"
|
||||
license-file = "LICENSE.MIT"
|
||||
@@ -11,7 +11,7 @@ publish = true
|
||||
|
||||
[dependencies]
|
||||
convert_case = "0.6.0"
|
||||
dagger-core = { path = "../dagger-core", version = "^0.2.2" }
|
||||
dagger-core = { path = "../dagger-core", version = "^0.2.4" }
|
||||
|
||||
eyre = "0.6.8"
|
||||
genco = "0.17.3"
|
||||
|
@@ -3,7 +3,7 @@ use genco::prelude::rust;
|
||||
use genco::quote;
|
||||
use itertools::Itertools;
|
||||
|
||||
use crate::functions::{type_ref_is_optional, CommonFunctions};
|
||||
use crate::functions::{CommonFunctions};
|
||||
use crate::rust::functions::{
|
||||
field_options_struct_name, format_function, format_name, format_optional_args,
|
||||
format_struct_comment, format_struct_name,
|
||||
|
@@ -5,6 +5,33 @@ All notable changes to this project will be documented in this file.
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## v0.2.4 (2023-02-20)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- <csr-id-8385aa8a15ff7b45fecc3462c482b998118c14eb/> remove blocking
|
||||
- <csr-id-921e61b5e248013cb5fbf4f1bad3eef5a2673145/> remove blocking
|
||||
|
||||
### Commit Statistics
|
||||
|
||||
<csr-read-only-do-not-edit/>
|
||||
|
||||
- 3 commits contributed to the release.
|
||||
- 2 commits were understood as [conventional](https://www.conventionalcommits.org).
|
||||
- 0 issues like '(#ID)' were seen in commit messages
|
||||
|
||||
### Commit Details
|
||||
|
||||
<csr-read-only-do-not-edit/>
|
||||
|
||||
<details><summary>view details</summary>
|
||||
|
||||
* **Uncategorized**
|
||||
- remove blocking ([`921e61b`](https://github.com/kjuulh/dagger-rs/commit/921e61b5e248013cb5fbf4f1bad3eef5a2673145))
|
||||
- Release dagger-core v0.2.4, dagger-codegen v0.2.6, dagger-sdk v0.2.11 ([`17ec62a`](https://github.com/kjuulh/dagger-rs/commit/17ec62a5d58232ff57391523b9851fb7b07d02ab))
|
||||
- remove blocking ([`8385aa8`](https://github.com/kjuulh/dagger-rs/commit/8385aa8a15ff7b45fecc3462c482b998118c14eb))
|
||||
</details>
|
||||
|
||||
## v0.2.3 (2023-02-20)
|
||||
|
||||
### Bug Fixes
|
||||
@@ -16,7 +43,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
<csr-read-only-do-not-edit/>
|
||||
|
||||
- 1 commit contributed to the release.
|
||||
- 2 commits contributed to the release.
|
||||
- 1 commit was understood as [conventional](https://www.conventionalcommits.org).
|
||||
- 0 issues like '(#ID)' were seen in commit messages
|
||||
|
||||
@@ -27,6 +54,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
<details><summary>view details</summary>
|
||||
|
||||
* **Uncategorized**
|
||||
- Release dagger-core v0.2.3, dagger-sdk v0.2.9, dagger-rs v0.2.10 ([`82de43a`](https://github.com/kjuulh/dagger-rs/commit/82de43aa91d6a5e09a247d1959137fdc36a40d35))
|
||||
- Fix async panic on blocking #19 ([`75bc17e`](https://github.com/kjuulh/dagger-rs/commit/75bc17e57db222492c6ffd2dfe80208d2bda75c9))
|
||||
</details>
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "dagger-core"
|
||||
version = "0.2.3"
|
||||
version = "0.2.4"
|
||||
edition = "2021"
|
||||
readme = "README.md"
|
||||
license-file = "LICENSE.MIT"
|
||||
@@ -16,14 +16,11 @@ eyre = "0.6.8"
|
||||
flate2 = { version = "1.0.25", features = ["zlib"] }
|
||||
genco = "0.17.3"
|
||||
graphql-introspection-query = "0.2.0"
|
||||
graphql_client = { version = "0.12.0", features = [
|
||||
"reqwest",
|
||||
"reqwest-blocking",
|
||||
] }
|
||||
graphql_client = { version = "0.12.0", features = ["reqwest"] }
|
||||
hex = "0.4.3"
|
||||
hex-literal = "0.3.4"
|
||||
platform-info = "1.0.2"
|
||||
reqwest = { version = "0.11.14", features = ["stream", "blocking", "deflate"] }
|
||||
reqwest = { version = "0.11.14", features = ["stream", "deflate"] }
|
||||
serde = { version = "1.0.152", features = ["derive"] }
|
||||
serde_json = "1.0.93"
|
||||
sha2 = "0.10.6"
|
||||
|
@@ -149,7 +149,7 @@ impl Downloader {
|
||||
let expected_checksum = self.expected_checksum().await?;
|
||||
|
||||
let mut bytes = vec![];
|
||||
let actual_hash = self.extract_cli_archive(&mut bytes)?;
|
||||
let actual_hash = self.extract_cli_archive(&mut bytes).await?;
|
||||
|
||||
if expected_checksum != actual_hash {
|
||||
eyre::bail!("downloaded CLI binary checksum doesn't match checksum from checksums.txt")
|
||||
@@ -190,17 +190,13 @@ impl Downloader {
|
||||
eyre::bail!("could not find a matching version or binary in checksums.txt")
|
||||
}
|
||||
|
||||
pub fn extract_cli_archive(&self, dest: &mut Vec<u8>) -> eyre::Result<String> {
|
||||
pub async fn extract_cli_archive(&self, dest: &mut Vec<u8>) -> eyre::Result<String> {
|
||||
let archive_url = self.archive_url();
|
||||
let resp = reqwest::blocking::get(&archive_url)?;
|
||||
let mut resp = resp.error_for_status()?;
|
||||
let mut bytes = vec![];
|
||||
let lines = resp.read_to_end(&mut bytes)?;
|
||||
if lines == 0 {
|
||||
eyre::bail!("nothing was downloaded")
|
||||
}
|
||||
let resp = reqwest::get(&archive_url).await?;
|
||||
let resp = resp.error_for_status()?;
|
||||
let bytes = resp.bytes().await?;
|
||||
let mut hasher = sha2::Sha256::new();
|
||||
hasher.update(bytes.as_slice());
|
||||
hasher.update(&bytes);
|
||||
let res = hasher.finalize();
|
||||
|
||||
println!("{}", hex::encode(&res));
|
||||
@@ -209,7 +205,7 @@ impl Downloader {
|
||||
// TODO: Nothing for now
|
||||
todo!()
|
||||
} else {
|
||||
self.extract_from_tar(bytes.as_slice(), dest)?;
|
||||
self.extract_from_tar(&bytes, dest)?;
|
||||
}
|
||||
|
||||
Ok(hex::encode(res))
|
||||
|
@@ -6,6 +6,33 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project adheres to
|
||||
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## v0.2.11 (2023-02-20)
|
||||
|
||||
<csr-id-803cfc4f8c4d72ab7d011be5523b3bfc6039de39/>
|
||||
|
||||
### Chore
|
||||
|
||||
- <csr-id-803cfc4f8c4d72ab7d011be5523b3bfc6039de39/> ran clippy
|
||||
|
||||
### Commit Statistics
|
||||
|
||||
<csr-read-only-do-not-edit/>
|
||||
|
||||
- 2 commits contributed to the release.
|
||||
- 1 commit was understood as [conventional](https://www.conventionalcommits.org).
|
||||
- 0 issues like '(#ID)' were seen in commit messages
|
||||
|
||||
### Commit Details
|
||||
|
||||
<csr-read-only-do-not-edit/>
|
||||
|
||||
<details><summary>view details</summary>
|
||||
|
||||
* **Uncategorized**
|
||||
- Release dagger-core v0.2.4, dagger-codegen v0.2.6, dagger-sdk v0.2.11 ([`17ec62a`](https://github.com/kjuulh/dagger-rs/commit/17ec62a5d58232ff57391523b9851fb7b07d02ab))
|
||||
- ran clippy ([`803cfc4`](https://github.com/kjuulh/dagger-rs/commit/803cfc4f8c4d72ab7d011be5523b3bfc6039de39))
|
||||
</details>
|
||||
|
||||
## v0.2.10 (2023-02-20)
|
||||
|
||||
Alignment release
|
||||
@@ -18,7 +45,7 @@ Alignment release
|
||||
|
||||
<csr-read-only-do-not-edit/>
|
||||
|
||||
- 7 commits contributed to the release.
|
||||
- 8 commits contributed to the release.
|
||||
- 1 commit was understood as [conventional](https://www.conventionalcommits.org).
|
||||
- 0 issues like '(#ID)' were seen in commit messages
|
||||
|
||||
@@ -29,6 +56,7 @@ Alignment release
|
||||
<details><summary>view details</summary>
|
||||
|
||||
* **Uncategorized**
|
||||
- Release dagger-sdk v0.2.10 ([`5cb9729`](https://github.com/kjuulh/dagger-rs/commit/5cb97296b61677fb37e4bdb8519d30a484f93621))
|
||||
- changelog ([`b100285`](https://github.com/kjuulh/dagger-rs/commit/b100285312df522218bfd4bc00bbf41b857a81bf))
|
||||
- Adjusting changelogs prior to release of dagger-sdk v0.2.10 ([`8ed0647`](https://github.com/kjuulh/dagger-rs/commit/8ed06476e56f3290a419d2a67e7f25da575c63ad))
|
||||
- update changelog ([`09aa658`](https://github.com/kjuulh/dagger-rs/commit/09aa658b6fb3c1e9a2de668c4a69bbe5be13202f))
|
||||
|
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "dagger-sdk"
|
||||
version = "0.2.10"
|
||||
version = "0.2.11"
|
||||
edition = "2021"
|
||||
readme = "README.md"
|
||||
license-file = "LICENSE.MIT"
|
||||
@@ -11,7 +11,7 @@ publish = true
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
dagger-core = { path = "../dagger-core", version = "0.2.3" }
|
||||
dagger-core = { path = "../dagger-core", version = "^0.2.4" }
|
||||
|
||||
base64 = "0.21.0"
|
||||
eyre = "0.6.8"
|
||||
|
@@ -35,7 +35,7 @@ impl CacheVolume {
|
||||
pub async fn id(
|
||||
&self,
|
||||
) -> eyre::Result<CacheId> {
|
||||
let mut query = self.selection.select("id");
|
||||
let query = self.selection.select("id");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@@ -216,7 +216,7 @@ impl Container {
|
||||
pub async fn default_args(
|
||||
&self,
|
||||
) -> eyre::Result<Vec<String>> {
|
||||
let mut query = self.selection.select("defaultArgs");
|
||||
let query = self.selection.select("defaultArgs");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@@ -239,7 +239,7 @@ impl Container {
|
||||
pub async fn entrypoint(
|
||||
&self,
|
||||
) -> eyre::Result<Vec<String>> {
|
||||
let mut query = self.selection.select("entrypoint");
|
||||
let query = self.selection.select("entrypoint");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@@ -258,7 +258,7 @@ impl Container {
|
||||
pub fn env_variables(
|
||||
&self,
|
||||
) -> Vec<EnvVariable> {
|
||||
let mut query = self.selection.select("envVariables");
|
||||
let query = self.selection.select("envVariables");
|
||||
|
||||
return vec![EnvVariable {
|
||||
proc: self.proc.clone(),
|
||||
@@ -274,7 +274,7 @@ impl Container {
|
||||
pub fn exec(
|
||||
&self,
|
||||
) -> Container {
|
||||
let mut query = self.selection.select("exec");
|
||||
let query = self.selection.select("exec");
|
||||
|
||||
return Container {
|
||||
proc: self.proc.clone(),
|
||||
@@ -321,7 +321,7 @@ impl Container {
|
||||
pub async fn exit_code(
|
||||
&self,
|
||||
) -> eyre::Result<isize> {
|
||||
let mut query = self.selection.select("exitCode");
|
||||
let query = self.selection.select("exitCode");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@@ -405,7 +405,7 @@ impl Container {
|
||||
pub fn fs(
|
||||
&self,
|
||||
) -> Directory {
|
||||
let mut query = self.selection.select("fs");
|
||||
let query = self.selection.select("fs");
|
||||
|
||||
return Directory {
|
||||
proc: self.proc.clone(),
|
||||
@@ -417,7 +417,7 @@ impl Container {
|
||||
pub async fn id(
|
||||
&self,
|
||||
) -> eyre::Result<ContainerId> {
|
||||
let mut query = self.selection.select("id");
|
||||
let query = self.selection.select("id");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@@ -436,7 +436,7 @@ impl Container {
|
||||
pub fn labels(
|
||||
&self,
|
||||
) -> Vec<Label> {
|
||||
let mut query = self.selection.select("labels");
|
||||
let query = self.selection.select("labels");
|
||||
|
||||
return vec![Label {
|
||||
proc: self.proc.clone(),
|
||||
@@ -448,7 +448,7 @@ impl Container {
|
||||
pub async fn mounts(
|
||||
&self,
|
||||
) -> eyre::Result<Vec<String>> {
|
||||
let mut query = self.selection.select("mounts");
|
||||
let query = self.selection.select("mounts");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@@ -499,7 +499,7 @@ impl Container {
|
||||
pub async fn platform(
|
||||
&self,
|
||||
) -> eyre::Result<Platform> {
|
||||
let mut query = self.selection.select("platform");
|
||||
let query = self.selection.select("platform");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@@ -546,7 +546,7 @@ impl Container {
|
||||
pub fn rootfs(
|
||||
&self,
|
||||
) -> Directory {
|
||||
let mut query = self.selection.select("rootfs");
|
||||
let query = self.selection.select("rootfs");
|
||||
|
||||
return Directory {
|
||||
proc: self.proc.clone(),
|
||||
@@ -559,7 +559,7 @@ impl Container {
|
||||
pub async fn stderr(
|
||||
&self,
|
||||
) -> eyre::Result<String> {
|
||||
let mut query = self.selection.select("stderr");
|
||||
let query = self.selection.select("stderr");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@@ -568,7 +568,7 @@ impl Container {
|
||||
pub async fn stdout(
|
||||
&self,
|
||||
) -> eyre::Result<String> {
|
||||
let mut query = self.selection.select("stdout");
|
||||
let query = self.selection.select("stdout");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@@ -576,7 +576,7 @@ impl Container {
|
||||
pub async fn user(
|
||||
&self,
|
||||
) -> eyre::Result<String> {
|
||||
let mut query = self.selection.select("user");
|
||||
let query = self.selection.select("user");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@@ -588,7 +588,7 @@ impl Container {
|
||||
pub fn with_default_args(
|
||||
&self,
|
||||
) -> Container {
|
||||
let mut query = self.selection.select("withDefaultArgs");
|
||||
let query = self.selection.select("withDefaultArgs");
|
||||
|
||||
return Container {
|
||||
proc: self.proc.clone(),
|
||||
@@ -1188,7 +1188,7 @@ impl Container {
|
||||
pub async fn workdir(
|
||||
&self,
|
||||
) -> eyre::Result<String> {
|
||||
let mut query = self.selection.select("workdir");
|
||||
let query = self.selection.select("workdir");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@@ -1298,7 +1298,7 @@ impl Directory {
|
||||
pub fn docker_build(
|
||||
&self,
|
||||
) -> Container {
|
||||
let mut query = self.selection.select("dockerBuild");
|
||||
let query = self.selection.select("dockerBuild");
|
||||
|
||||
return Container {
|
||||
proc: self.proc.clone(),
|
||||
@@ -1345,7 +1345,7 @@ impl Directory {
|
||||
pub async fn entries(
|
||||
&self,
|
||||
) -> eyre::Result<Vec<String>> {
|
||||
let mut query = self.selection.select("entries");
|
||||
let query = self.selection.select("entries");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@@ -1397,7 +1397,7 @@ impl Directory {
|
||||
pub async fn id(
|
||||
&self,
|
||||
) -> eyre::Result<DirectoryId> {
|
||||
let mut query = self.selection.select("id");
|
||||
let query = self.selection.select("id");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@@ -1703,7 +1703,7 @@ impl EnvVariable {
|
||||
pub async fn name(
|
||||
&self,
|
||||
) -> eyre::Result<String> {
|
||||
let mut query = self.selection.select("name");
|
||||
let query = self.selection.select("name");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@@ -1711,7 +1711,7 @@ impl EnvVariable {
|
||||
pub async fn value(
|
||||
&self,
|
||||
) -> eyre::Result<String> {
|
||||
let mut query = self.selection.select("value");
|
||||
let query = self.selection.select("value");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@@ -1727,7 +1727,7 @@ impl File {
|
||||
pub async fn contents(
|
||||
&self,
|
||||
) -> eyre::Result<String> {
|
||||
let mut query = self.selection.select("contents");
|
||||
let query = self.selection.select("contents");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@@ -1746,7 +1746,7 @@ impl File {
|
||||
pub async fn id(
|
||||
&self,
|
||||
) -> eyre::Result<FileId> {
|
||||
let mut query = self.selection.select("id");
|
||||
let query = self.selection.select("id");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@@ -1754,7 +1754,7 @@ impl File {
|
||||
pub fn secret(
|
||||
&self,
|
||||
) -> Secret {
|
||||
let mut query = self.selection.select("secret");
|
||||
let query = self.selection.select("secret");
|
||||
|
||||
return Secret {
|
||||
proc: self.proc.clone(),
|
||||
@@ -1766,7 +1766,7 @@ impl File {
|
||||
pub async fn size(
|
||||
&self,
|
||||
) -> eyre::Result<isize> {
|
||||
let mut query = self.selection.select("size");
|
||||
let query = self.selection.select("size");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@@ -1806,7 +1806,7 @@ impl GitRef {
|
||||
pub async fn digest(
|
||||
&self,
|
||||
) -> eyre::Result<String> {
|
||||
let mut query = self.selection.select("digest");
|
||||
let query = self.selection.select("digest");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@@ -1818,7 +1818,7 @@ impl GitRef {
|
||||
pub fn tree(
|
||||
&self,
|
||||
) -> Directory {
|
||||
let mut query = self.selection.select("tree");
|
||||
let query = self.selection.select("tree");
|
||||
|
||||
return Directory {
|
||||
proc: self.proc.clone(),
|
||||
@@ -1878,7 +1878,7 @@ impl GitRepository {
|
||||
pub async fn branches(
|
||||
&self,
|
||||
) -> eyre::Result<Vec<String>> {
|
||||
let mut query = self.selection.select("branches");
|
||||
let query = self.selection.select("branches");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@@ -1916,7 +1916,7 @@ impl GitRepository {
|
||||
pub async fn tags(
|
||||
&self,
|
||||
) -> eyre::Result<Vec<String>> {
|
||||
let mut query = self.selection.select("tags");
|
||||
let query = self.selection.select("tags");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@@ -2029,7 +2029,7 @@ impl Host {
|
||||
pub fn workdir(
|
||||
&self,
|
||||
) -> Directory {
|
||||
let mut query = self.selection.select("workdir");
|
||||
let query = self.selection.select("workdir");
|
||||
|
||||
return Directory {
|
||||
proc: self.proc.clone(),
|
||||
@@ -2074,7 +2074,7 @@ impl HostVariable {
|
||||
pub fn secret(
|
||||
&self,
|
||||
) -> Secret {
|
||||
let mut query = self.selection.select("secret");
|
||||
let query = self.selection.select("secret");
|
||||
|
||||
return Secret {
|
||||
proc: self.proc.clone(),
|
||||
@@ -2086,7 +2086,7 @@ impl HostVariable {
|
||||
pub async fn value(
|
||||
&self,
|
||||
) -> eyre::Result<String> {
|
||||
let mut query = self.selection.select("value");
|
||||
let query = self.selection.select("value");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@@ -2102,7 +2102,7 @@ impl Label {
|
||||
pub async fn name(
|
||||
&self,
|
||||
) -> eyre::Result<String> {
|
||||
let mut query = self.selection.select("name");
|
||||
let query = self.selection.select("name");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@@ -2110,7 +2110,7 @@ impl Label {
|
||||
pub async fn value(
|
||||
&self,
|
||||
) -> eyre::Result<String> {
|
||||
let mut query = self.selection.select("value");
|
||||
let query = self.selection.select("value");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@@ -2126,7 +2126,7 @@ impl Project {
|
||||
pub fn extensions(
|
||||
&self,
|
||||
) -> Vec<Project> {
|
||||
let mut query = self.selection.select("extensions");
|
||||
let query = self.selection.select("extensions");
|
||||
|
||||
return vec![Project {
|
||||
proc: self.proc.clone(),
|
||||
@@ -2138,7 +2138,7 @@ impl Project {
|
||||
pub fn generated_code(
|
||||
&self,
|
||||
) -> Directory {
|
||||
let mut query = self.selection.select("generatedCode");
|
||||
let query = self.selection.select("generatedCode");
|
||||
|
||||
return Directory {
|
||||
proc: self.proc.clone(),
|
||||
@@ -2150,7 +2150,7 @@ impl Project {
|
||||
pub async fn install(
|
||||
&self,
|
||||
) -> eyre::Result<bool> {
|
||||
let mut query = self.selection.select("install");
|
||||
let query = self.selection.select("install");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@@ -2158,7 +2158,7 @@ impl Project {
|
||||
pub async fn name(
|
||||
&self,
|
||||
) -> eyre::Result<String> {
|
||||
let mut query = self.selection.select("name");
|
||||
let query = self.selection.select("name");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@@ -2166,7 +2166,7 @@ impl Project {
|
||||
pub async fn schema(
|
||||
&self,
|
||||
) -> eyre::Result<String> {
|
||||
let mut query = self.selection.select("schema");
|
||||
let query = self.selection.select("schema");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@@ -2174,7 +2174,7 @@ impl Project {
|
||||
pub async fn sdk(
|
||||
&self,
|
||||
) -> eyre::Result<String> {
|
||||
let mut query = self.selection.select("sdk");
|
||||
let query = self.selection.select("sdk");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@@ -2248,7 +2248,7 @@ impl Query {
|
||||
pub fn container(
|
||||
&self,
|
||||
) -> Container {
|
||||
let mut query = self.selection.select("container");
|
||||
let query = self.selection.select("container");
|
||||
|
||||
return Container {
|
||||
proc: self.proc.clone(),
|
||||
@@ -2287,7 +2287,7 @@ impl Query {
|
||||
pub async fn default_platform(
|
||||
&self,
|
||||
) -> eyre::Result<Platform> {
|
||||
let mut query = self.selection.select("defaultPlatform");
|
||||
let query = self.selection.select("defaultPlatform");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@@ -2299,7 +2299,7 @@ impl Query {
|
||||
pub fn directory(
|
||||
&self,
|
||||
) -> Directory {
|
||||
let mut query = self.selection.select("directory");
|
||||
let query = self.selection.select("directory");
|
||||
|
||||
return Directory {
|
||||
proc: self.proc.clone(),
|
||||
@@ -2391,7 +2391,7 @@ impl Query {
|
||||
pub fn host(
|
||||
&self,
|
||||
) -> Host {
|
||||
let mut query = self.selection.select("host");
|
||||
let query = self.selection.select("host");
|
||||
|
||||
return Host {
|
||||
proc: self.proc.clone(),
|
||||
@@ -2495,7 +2495,7 @@ impl Query {
|
||||
pub fn socket(
|
||||
&self,
|
||||
) -> Socket {
|
||||
let mut query = self.selection.select("socket");
|
||||
let query = self.selection.select("socket");
|
||||
|
||||
return Socket {
|
||||
proc: self.proc.clone(),
|
||||
@@ -2537,7 +2537,7 @@ impl Secret {
|
||||
pub async fn id(
|
||||
&self,
|
||||
) -> eyre::Result<SecretId> {
|
||||
let mut query = self.selection.select("id");
|
||||
let query = self.selection.select("id");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@@ -2545,7 +2545,7 @@ impl Secret {
|
||||
pub async fn plaintext(
|
||||
&self,
|
||||
) -> eyre::Result<String> {
|
||||
let mut query = self.selection.select("plaintext");
|
||||
let query = self.selection.select("plaintext");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@@ -2561,7 +2561,7 @@ impl Socket {
|
||||
pub async fn id(
|
||||
&self,
|
||||
) -> eyre::Result<SocketId> {
|
||||
let mut query = self.selection.select("id");
|
||||
let query = self.selection.select("id");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
|
Reference in New Issue
Block a user