From d8260d5d2c0028019bbfa459ff4446bcfa3056c9 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Wed, 7 Dec 2022 17:30:18 +0100 Subject: [PATCH] Inherit package version from workspace root This way, we don't need to update the version manually in all sub-crates on every release. --- Cargo.toml | 4 ++++ apis/c++/node/Cargo.toml | 2 +- apis/c++/operator/Cargo.toml | 2 +- apis/c/node/Cargo.toml | 2 +- apis/c/operator/Cargo.toml | 2 +- apis/python/operator/Cargo.toml | 2 +- apis/rust/node/Cargo.toml | 2 +- apis/rust/operator/Cargo.toml | 2 +- apis/rust/operator/macros/Cargo.toml | 2 +- apis/rust/operator/types/Cargo.toml | 2 +- binaries/cli/Cargo.toml | 2 +- binaries/coordinator/Cargo.toml | 2 +- binaries/runtime/Cargo.toml | 2 +- examples/iceoryx/node/Cargo.toml | 2 +- examples/iceoryx/operator/Cargo.toml | 2 +- examples/iceoryx/sink/Cargo.toml | 2 +- examples/rust-dataflow-url/sink/Cargo.toml | 2 +- examples/rust-dataflow/node/Cargo.toml | 2 +- examples/rust-dataflow/operator/Cargo.toml | 2 +- examples/rust-dataflow/sink/Cargo.toml | 2 +- libraries/communication-layer/pub-sub/Cargo.toml | 2 +- libraries/communication-layer/request-reply/Cargo.toml | 2 +- libraries/core/Cargo.toml | 2 +- libraries/extensions/download/Cargo.toml | 2 +- libraries/extensions/telemetry/metrics/Cargo.toml | 2 +- libraries/extensions/telemetry/tracing/Cargo.toml | 2 +- libraries/extensions/zenoh-logger/Cargo.toml | 2 +- libraries/message/Cargo.toml | 2 +- 28 files changed, 31 insertions(+), 27 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d98953ff..53d8b14c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,12 +18,16 @@ members = [ "libraries/extensions/zenoh-logger", ] +[workspace.package] +version = "0.1.1" + [package] name = "dora-examples" version = "0.0.0" edition = "2021" license = "Apache-2.0" + [dev-dependencies] eyre = "0.6.8" tokio = "1.20.1" diff --git a/apis/c++/node/Cargo.toml b/apis/c++/node/Cargo.toml index 4c60e9a5..69b5e485 100644 --- a/apis/c++/node/Cargo.toml +++ b/apis/c++/node/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dora-node-api-cxx" -version = "0.1.1" +version.workspace = true edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/apis/c++/operator/Cargo.toml b/apis/c++/operator/Cargo.toml index 9f359563..cb14297e 100644 --- a/apis/c++/operator/Cargo.toml +++ b/apis/c++/operator/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dora-operator-api-cxx" -version = "0.1.1" +version.workspace = true edition = "2021" [lib] diff --git a/apis/c/node/Cargo.toml b/apis/c/node/Cargo.toml index c8cf6366..8a1d0410 100644 --- a/apis/c/node/Cargo.toml +++ b/apis/c/node/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dora-node-api-c" -version = "0.1.1" +version.workspace = true edition = "2021" license = "Apache-2.0" diff --git a/apis/c/operator/Cargo.toml b/apis/c/operator/Cargo.toml index 82d857f8..a9d98333 100644 --- a/apis/c/operator/Cargo.toml +++ b/apis/c/operator/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dora-operator-api-c" -version = "0.1.1" +version.workspace = true edition = "2021" license = "Apache-2.0" description = "C API implemetation for Dora Operator" diff --git a/apis/python/operator/Cargo.toml b/apis/python/operator/Cargo.toml index fd3a42b7..2d1efcb2 100644 --- a/apis/python/operator/Cargo.toml +++ b/apis/python/operator/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dora-operator-api-python" -version = "0.1.1" +version.workspace = true edition = "2021" license = "Apache-2.0" diff --git a/apis/rust/node/Cargo.toml b/apis/rust/node/Cargo.toml index fd790684..0a0d6638 100644 --- a/apis/rust/node/Cargo.toml +++ b/apis/rust/node/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dora-node-api" -version = "0.1.1" +version.workspace = true edition = "2021" license = "Apache-2.0" diff --git a/apis/rust/operator/Cargo.toml b/apis/rust/operator/Cargo.toml index 233b42d8..144cc216 100644 --- a/apis/rust/operator/Cargo.toml +++ b/apis/rust/operator/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dora-operator-api" -version = "0.1.1" +version.workspace = true edition = "2021" license = "Apache-2.0" description = "Rust API implemetation for Dora Operator" diff --git a/apis/rust/operator/macros/Cargo.toml b/apis/rust/operator/macros/Cargo.toml index 066d808c..4f2c6e32 100644 --- a/apis/rust/operator/macros/Cargo.toml +++ b/apis/rust/operator/macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dora-operator-api-macros" -version = "0.1.1" +version.workspace = true edition = "2021" license = "Apache-2.0" description = "Rust API Macros for Dora Operator" diff --git a/apis/rust/operator/types/Cargo.toml b/apis/rust/operator/types/Cargo.toml index 2d6cbc21..156264c5 100644 --- a/apis/rust/operator/types/Cargo.toml +++ b/apis/rust/operator/types/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dora-operator-api-types" -version = "0.1.1" +version.workspace = true edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/binaries/cli/Cargo.toml b/binaries/cli/Cargo.toml index 96c77e33..0c504b51 100644 --- a/binaries/cli/Cargo.toml +++ b/binaries/cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dora-cli" -version = "0.1.1" +version.workspace = true edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/binaries/coordinator/Cargo.toml b/binaries/coordinator/Cargo.toml index fc3f18b8..7255a9be 100644 --- a/binaries/coordinator/Cargo.toml +++ b/binaries/coordinator/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dora-coordinator" -version = "0.1.1" +version.workspace = true edition = "2021" license = "Apache-2.0" diff --git a/binaries/runtime/Cargo.toml b/binaries/runtime/Cargo.toml index 97b65b03..c285eb0f 100644 --- a/binaries/runtime/Cargo.toml +++ b/binaries/runtime/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dora-runtime" -version = "0.1.1" +version.workspace = true edition = "2021" license = "Apache-2.0" diff --git a/examples/iceoryx/node/Cargo.toml b/examples/iceoryx/node/Cargo.toml index 66bea6e5..474d81a7 100644 --- a/examples/iceoryx/node/Cargo.toml +++ b/examples/iceoryx/node/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "iceoryx-example-node" -version = "0.1.1" +version.workspace = true edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/examples/iceoryx/operator/Cargo.toml b/examples/iceoryx/operator/Cargo.toml index eb5f3032..6b1368e6 100644 --- a/examples/iceoryx/operator/Cargo.toml +++ b/examples/iceoryx/operator/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "iceoryx-example-operator" -version = "0.1.1" +version.workspace = true edition = "2021" license = "Apache-2.0" diff --git a/examples/iceoryx/sink/Cargo.toml b/examples/iceoryx/sink/Cargo.toml index 4f3b049e..1238d5e8 100644 --- a/examples/iceoryx/sink/Cargo.toml +++ b/examples/iceoryx/sink/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "iceoryx-example-sink" -version = "0.1.1" +version.workspace = true edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/examples/rust-dataflow-url/sink/Cargo.toml b/examples/rust-dataflow-url/sink/Cargo.toml index f98c5d28..8f0d14eb 100644 --- a/examples/rust-dataflow-url/sink/Cargo.toml +++ b/examples/rust-dataflow-url/sink/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rust-dataflow-example-sink" -version = "0.1.1" +version.workspace = true edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/examples/rust-dataflow/node/Cargo.toml b/examples/rust-dataflow/node/Cargo.toml index 71f91475..cefcdd47 100644 --- a/examples/rust-dataflow/node/Cargo.toml +++ b/examples/rust-dataflow/node/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rust-dataflow-example-node" -version = "0.1.1" +version.workspace = true edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/examples/rust-dataflow/operator/Cargo.toml b/examples/rust-dataflow/operator/Cargo.toml index e18c676c..2422f1fa 100644 --- a/examples/rust-dataflow/operator/Cargo.toml +++ b/examples/rust-dataflow/operator/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rust-dataflow-example-operator" -version = "0.1.1" +version.workspace = true edition = "2021" license = "Apache-2.0" diff --git a/examples/rust-dataflow/sink/Cargo.toml b/examples/rust-dataflow/sink/Cargo.toml index f98c5d28..8f0d14eb 100644 --- a/examples/rust-dataflow/sink/Cargo.toml +++ b/examples/rust-dataflow/sink/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rust-dataflow-example-sink" -version = "0.1.1" +version.workspace = true edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/libraries/communication-layer/pub-sub/Cargo.toml b/libraries/communication-layer/pub-sub/Cargo.toml index 525e5093..8eb1c92e 100644 --- a/libraries/communication-layer/pub-sub/Cargo.toml +++ b/libraries/communication-layer/pub-sub/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "communication-layer-pub-sub" -version = "0.1.1" +version.workspace = true edition = "2021" [features] diff --git a/libraries/communication-layer/request-reply/Cargo.toml b/libraries/communication-layer/request-reply/Cargo.toml index e580b981..61b9a59d 100644 --- a/libraries/communication-layer/request-reply/Cargo.toml +++ b/libraries/communication-layer/request-reply/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "communication-layer-request-reply" -version = "0.1.1" +version.workspace = true edition = "2021" [features] diff --git a/libraries/core/Cargo.toml b/libraries/core/Cargo.toml index d419f7fb..494e6160 100644 --- a/libraries/core/Cargo.toml +++ b/libraries/core/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dora-core" -version = "0.1.1" +version.workspace = true edition = "2021" license = "Apache-2.0" diff --git a/libraries/extensions/download/Cargo.toml b/libraries/extensions/download/Cargo.toml index ad851bc6..6155a6e4 100644 --- a/libraries/extensions/download/Cargo.toml +++ b/libraries/extensions/download/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dora-download" -version = "0.1.1" +version.workspace = true edition = "2021" license = "Apache-2.0" diff --git a/libraries/extensions/telemetry/metrics/Cargo.toml b/libraries/extensions/telemetry/metrics/Cargo.toml index 77c1620d..57d31315 100644 --- a/libraries/extensions/telemetry/metrics/Cargo.toml +++ b/libraries/extensions/telemetry/metrics/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dora-metrics" -version = "0.1.1" +version.workspace = true edition = "2021" license = "Apache-2.0" diff --git a/libraries/extensions/telemetry/tracing/Cargo.toml b/libraries/extensions/telemetry/tracing/Cargo.toml index ccc59e57..2dd5ae4e 100644 --- a/libraries/extensions/telemetry/tracing/Cargo.toml +++ b/libraries/extensions/telemetry/tracing/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dora-tracing" -version = "0.1.1" +version.workspace = true edition = "2021" license = "Apache-2.0" diff --git a/libraries/extensions/zenoh-logger/Cargo.toml b/libraries/extensions/zenoh-logger/Cargo.toml index 1782b11a..7ef5d588 100644 --- a/libraries/extensions/zenoh-logger/Cargo.toml +++ b/libraries/extensions/zenoh-logger/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "zenoh-logger" -version = "0.1.1" +version.workspace = true edition = "2021" license = "Apache-2.0" diff --git a/libraries/message/Cargo.toml b/libraries/message/Cargo.toml index e39d4f9d..382f61dc 100644 --- a/libraries/message/Cargo.toml +++ b/libraries/message/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dora-message" -version = "0.1.1" +version.workspace = true edition = "2021" license = "Apache-2.0"