From 077b1bc3110f4760d0770799af0396307ab90021 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Wed, 26 Apr 2023 17:51:16 -0500 Subject: [PATCH] chore: Mark unpublished crates as such This is a follow up to #12039. This makes it easier for tools to report less irrelevant information. I did both `publish = false` and `version = "0.0.0"` to help draw attention to the fact that these crates are internal (inspired by a matklad post). I left `cargo-test-macro` and `cargo-test-support` in for my own personal bias of one day wanting to see those crates published... The only one removed that had previously been published was `mdman` but seeing as that was a `0.0.0`, I'm assuming that was a mistake or just reserving the name. Before: ```console $ cargo unpublished name published current ==== ========= ======= cargo-platform 0.1.2 0.1.3 cargo-test-macro - 0.1.0 cargo-test-support - 0.1.0 cargo-util 0.2.3 0.2.4 crates-io 0.36.0 0.36.1 mdman 0.0.0 0.1.0 resolver-tests - 0.1.0 cargo 0.70.1 0.72.0 semver-check - 0.1.0 cargo-credential 0.1.0 0.2.0 cargo-credential-1password 0.1.0 0.2.0 cargo-credential-gnome-secret 0.1.0 0.2.0 cargo-credential-macos-keychain 0.1.0 0.2.0 cargo-credential-wincred 0.1.0 0.2.0 benchsuite - 0.1.0 ``` After: ```console name published current ==== ========= ======= cargo-platform 0.1.2 0.1.3 cargo-test-macro - 0.1.0 cargo-test-support - 0.1.0 cargo-util 0.2.3 0.2.4 crates-io 0.36.0 0.36.1 cargo 0.70.1 0.72.0 cargo-credential 0.1.0 0.2.0 cargo-credential-1password 0.1.0 0.2.0 cargo-credential-gnome-secret 0.1.0 0.2.0 cargo-credential-macos-keychain 0.1.0 0.2.0 cargo-credential-wincred 0.1.0 0.2.0 ``` --- Cargo.lock | 8 ++++---- benches/benchsuite/Cargo.toml | 3 ++- crates/mdman/Cargo.toml | 3 ++- crates/resolver-tests/Cargo.toml | 3 ++- crates/semver-check/Cargo.toml | 3 ++- 5 files changed, 12 insertions(+), 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 45c3598405b..46188d1606c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -124,7 +124,7 @@ checksum = "8c3c1a368f70d6cf7302d78f8f7093da241fb8e8807c05cc9e51a125895a6d5b" [[package]] name = "benchsuite" -version = "0.1.0" +version = "0.0.0" dependencies = [ "cargo", "criterion", @@ -1990,7 +1990,7 @@ dependencies = [ [[package]] name = "mdman" -version = "0.1.0" +version = "0.0.0" dependencies = [ "anyhow", "handlebars", @@ -2639,7 +2639,7 @@ dependencies = [ [[package]] name = "resolver-tests" -version = "0.1.0" +version = "0.0.0" dependencies = [ "cargo", "cargo-util", @@ -2781,7 +2781,7 @@ dependencies = [ [[package]] name = "semver-check" -version = "0.1.0" +version = "0.0.0" dependencies = [ "tempfile", ] diff --git a/benches/benchsuite/Cargo.toml b/benches/benchsuite/Cargo.toml index fba6f63cd91..5cd4b2330cd 100644 --- a/benches/benchsuite/Cargo.toml +++ b/benches/benchsuite/Cargo.toml @@ -1,11 +1,12 @@ [package] name = "benchsuite" -version = "0.1.0" +version = "0.0.0" edition = "2021" license = "MIT OR Apache-2.0" homepage = "https://github.com/rust-lang/cargo" repository = "https://github.com/rust-lang/cargo" description = "Benchmarking suite for Cargo." +publish = false [dependencies] cargo = { path = "../.." } diff --git a/crates/mdman/Cargo.toml b/crates/mdman/Cargo.toml index 92cdf2eb634..def3cad9d56 100644 --- a/crates/mdman/Cargo.toml +++ b/crates/mdman/Cargo.toml @@ -1,9 +1,10 @@ [package] name = "mdman" -version = "0.1.0" +version = "0.0.0" edition = "2021" license = "MIT OR Apache-2.0" description = "Creates a man page page from markdown." +publish = false [dependencies] anyhow = "1.0.31" diff --git a/crates/resolver-tests/Cargo.toml b/crates/resolver-tests/Cargo.toml index e4aab4325f7..3de0e945ac3 100644 --- a/crates/resolver-tests/Cargo.toml +++ b/crates/resolver-tests/Cargo.toml @@ -1,7 +1,8 @@ [package] name = "resolver-tests" -version = "0.1.0" +version = "0.0.0" edition = "2018" +publish = false [dependencies] cargo = { path = "../.." } diff --git a/crates/semver-check/Cargo.toml b/crates/semver-check/Cargo.toml index bdfd8d7d7c1..e40b499ee06 100644 --- a/crates/semver-check/Cargo.toml +++ b/crates/semver-check/Cargo.toml @@ -1,8 +1,9 @@ [package] name = "semver-check" -version = "0.1.0" +version = "0.0.0" authors = ["Eric Huss"] edition = "2021" +publish = false # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html