From 49eeb15947f302436b16766c3504b010fb3f879c Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 10 Jun 2026 16:43:07 +0000 Subject: [PATCH] Inherit crate version from [workspace.package] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit All workspace members carried their own `version = "0.1.0"` in Cargo.toml, so a release had to touch eight manifests to bump the version — and in practice they were never bumped, leaving every crate at 0.1.0. That stale version is what `utoipa` reports as the OpenAPI `info.version` (via the api crate's CARGO_PKG_VERSION), so the published openapi.yaml and everything generated from it advertised 0.1.0. Move the version to `[workspace.package]` and have each member inherit it with `version.workspace = true`. Releasing is now a single edit (or `cargo set-version --workspace `), keeping all crates and the OpenAPI version in lockstep. The version itself is intentionally left at 0.1.0 here — the next release bumps it through the workspace key. --- Cargo.toml | 7 +++++++ api/Cargo.toml | 2 +- auth/Cargo.toml | 2 +- chart-discovery/Cargo.toml | 2 +- db/Cargo.toml | 2 +- k8s-agent/Cargo.toml | 2 +- otel/Cargo.toml | 2 +- resource-sync/Cargo.toml | 2 +- status-updates/Cargo.toml | 2 +- 9 files changed, 15 insertions(+), 8 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 64882bc..3baf77b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,6 +11,13 @@ members = [ ] resolver = "2" +# Shared package metadata inherited by every workspace member via +# `version.workspace = true`. Bumping the release version is a single edit +# here (or `cargo set-version --workspace `), which keeps all crates — +# and the OpenAPI `info.version` derived from the api crate — in lockstep. +[workspace.package] +version = "0.1.0" + [profile.release] debug = true diff --git a/api/Cargo.toml b/api/Cargo.toml index b24437a..9fd09d6 100644 --- a/api/Cargo.toml +++ b/api/Cargo.toml @@ -1,7 +1,7 @@ [package] edition = "2024" name = "platz-api" -version = "0.1.0" +version.workspace = true [dependencies] actix = "0.13.5" diff --git a/auth/Cargo.toml b/auth/Cargo.toml index 4eb7d80..9325d0b 100644 --- a/auth/Cargo.toml +++ b/auth/Cargo.toml @@ -1,7 +1,7 @@ [package] edition = "2024" name = "platz-auth" -version = "0.1.0" +version.workspace = true [features] actix = ["actix-web", "actix-web-httpauth", "futures"] diff --git a/chart-discovery/Cargo.toml b/chart-discovery/Cargo.toml index 4f664c7..05e963e 100644 --- a/chart-discovery/Cargo.toml +++ b/chart-discovery/Cargo.toml @@ -1,7 +1,7 @@ [package] edition = "2024" name = "platz-chart-discovery" -version = "0.1.0" +version.workspace = true [dependencies] anyhow = "1.0.102" diff --git a/db/Cargo.toml b/db/Cargo.toml index 72797c6..6f81e2f 100644 --- a/db/Cargo.toml +++ b/db/Cargo.toml @@ -1,7 +1,7 @@ [package] edition = "2024" name = "platz-db" -version = "0.1.0" +version.workspace = true [dependencies] anyhow = "1.0.102" diff --git a/k8s-agent/Cargo.toml b/k8s-agent/Cargo.toml index f05b553..2457d96 100644 --- a/k8s-agent/Cargo.toml +++ b/k8s-agent/Cargo.toml @@ -1,7 +1,7 @@ [package] edition = "2024" name = "platz-k8s-agent" -version = "0.1.0" +version.workspace = true [dependencies] anyhow = { version = "1.0.102", features = ["backtrace"] } diff --git a/otel/Cargo.toml b/otel/Cargo.toml index 0defa88..28a066f 100644 --- a/otel/Cargo.toml +++ b/otel/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "platz-otel" -version = "0.1.0" +version.workspace = true edition = "2024" [dependencies] diff --git a/resource-sync/Cargo.toml b/resource-sync/Cargo.toml index 967792f..451fdea 100644 --- a/resource-sync/Cargo.toml +++ b/resource-sync/Cargo.toml @@ -1,7 +1,7 @@ [package] edition = "2024" name = "platz-resource-sync" -version = "0.1.0" +version.workspace = true [dependencies] anyhow = "1.0.102" diff --git a/status-updates/Cargo.toml b/status-updates/Cargo.toml index 06cf2af..b11ed3f 100644 --- a/status-updates/Cargo.toml +++ b/status-updates/Cargo.toml @@ -1,7 +1,7 @@ [package] edition = "2024" name = "platz-status-updates" -version = "0.1.0" +version.workspace = true [dependencies] anyhow = "1.0.102"