From 48c51020e571455fa004be25371f85a39a945cad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BChlbacher?= Date: Fri, 19 Jul 2024 21:17:51 +0200 Subject: [PATCH] build: rm `package.version` from Cargo.toml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This sets the version, that can be read at build time using the environment variable `CARGO_PKG_VERSION`, to the default value (`0.0.0`). Setting `package.version` in the Cargo manifest is mandatory for publishing to crates.io. We're not publishing the crate currently, and there isn't an obvious case for doing so in the future that comes to mind. Our sources are not using the version from cargo currently. `clap` and some other dependencies may use them by default but still we don't use that version in any outputs. Therefore, we should be fine without it. Signed-off-by: Thomas Mühlbacher --- Cargo.lock | 2 +- Cargo.toml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a4f1ed44..37c2bd40 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -73,7 +73,7 @@ checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" [[package]] name = "bcachefs-tools" -version = "1.9.5" +version = "0.0.0" dependencies = [ "anyhow", "bch_bindgen", diff --git a/Cargo.toml b/Cargo.toml index 8520f55f..151a9428 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,5 @@ [package] name = "bcachefs-tools" -version = "1.9.5" authors = ["Yuxuan Shui ", "Kayla Firestack ", "Kent Overstreet " ] edition = "2021" rust-version = "1.70"