diff --git a/Makefile.toml b/Makefile.toml index 9dff01a..6fa2931 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -2,3 +2,42 @@ command = "cargo" args = ["run", "-p", "ci", "--", "codegen"] workspace = false + +[tasks.build] +command = "cargo" +args = ["run", "-p", "ci", "--", "ci"] +dependencies = ["codegen"] +workspace = false + +[tasks.fmt] +command = "cargo" +args = ["fmt", "--all"] +workspace = false + +[tasks.fix] +command = "cargo" +args = ["fix", "--workspace", "--allow-dirty"] +dependencies = ["fmt"] +workspace = false + +[tasks.release_crate] +command = "cargo" +args = [ + "smart-release", + "--allow-fully-generated-changelogs", + "--update-crates-index", + "dagger-sdk", +] +dependencies = ["codegen", "fix"] +workspace = false + +[tasks.release_crate_commit] +command = "cargo" +args = [ + "smart-release", + "-e", + "--allow-fully-generated-changelogs", + "--update-crates-index", + "dagger-sdk", +] +workspace = false diff --git a/ci/src/main.rs b/ci/src/main.rs index ea3818d..612fbba 100644 --- a/ci/src/main.rs +++ b/ci/src/main.rs @@ -55,6 +55,7 @@ async fn run_codegen(client: Arc, _subm: &ArgMatches) -> eyre::Result<()> ]) .with_exec(vec!["cargo", "fmt", "--all"]) .with_exec(vec!["cargo", "fix", "--workspace", "--allow-dirty"]) + .with_exec(vec!["cargo", "fmt", "--all"]) .with_exec(vec!["mv", "crates/dagger-sdk/gen.rs", "/mnt/output/gen.rs"]); let _ = generated_image.exit_code().await?; diff --git a/crates/dagger-sdk/src/gen.rs b/crates/dagger-sdk/src/gen.rs index 7978207..214d6d5 100644 --- a/crates/dagger-sdk/src/gen.rs +++ b/crates/dagger-sdk/src/gen.rs @@ -22,13 +22,13 @@ pub struct SecretId(String); pub struct SocketId(String); #[derive(Serialize, Deserialize, Debug, PartialEq, Clone)] pub struct BuildArg { - pub name: String, pub value: String, + pub name: String, } #[derive(Serialize, Deserialize, Debug, PartialEq, Clone)] pub struct PipelineLabel { - pub value: String, pub name: String, + pub value: String, } #[derive(Debug, Clone)] pub struct CacheVolume { @@ -2764,12 +2764,12 @@ impl Socket { } #[derive(Serialize, Deserialize, Clone, PartialEq, Debug)] pub enum CacheSharingMode { + PRIVATE, LOCKED, SHARED, - PRIVATE, } #[derive(Serialize, Deserialize, Clone, PartialEq, Debug)] pub enum NetworkProtocol { - TCP, UDP, + TCP, }