From 970809f551eb78ea003006ef4da0c303ede8501d Mon Sep 17 00:00:00 2001 From: Oliver Tale-Yazdi Date: Fri, 22 Dec 2023 23:32:19 +0100 Subject: [PATCH] Remove publish feature (#15) The `publish` feature should not be needed anymore after #14. --------- Signed-off-by: Oliver Tale-Yazdi --- .github/workflows/rust.yml | 8 ++++---- Cargo.lock | 2 +- MAINTAIN.md | 8 ++++++-- proc-macro-warning/Cargo.toml | 3 +-- 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 2d60a33..8f48064 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -30,16 +30,16 @@ jobs: run: cargo check --all-targets --no-default-features # still broken --locked - name: Build - run: cargo build --all-targets --features derive_debug --locked + run: cargo build --all-targets --all-features --locked - name: Test - run: cargo test --locked --all-targets --features derive_debug + run: cargo test --locked --all-targets --all-features - name: Clippy - run: cargo clippy --locked --all-targets --features derive_debug -- -D warnings + run: cargo clippy --locked --all-targets --all-features -- -D warnings - name: Documentation - run: cargo doc --locked --no-deps --features derive_debug + run: cargo doc --locked --no-deps --all-features - name: Doc Test run: cargo test --locked --doc diff --git a/Cargo.lock b/Cargo.lock index ad358e8..3c69867 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -40,7 +40,7 @@ checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d" [[package]] name = "proc-macro-warning" -version = "1.0.1" +version = "1.0.2" dependencies = [ "derive", "proc-macro2", diff --git a/MAINTAIN.md b/MAINTAIN.md index f85a3e9..e2c83c2 100644 --- a/MAINTAIN.md +++ b/MAINTAIN.md @@ -7,8 +7,12 @@ Info regarding crate maintenance. The README file of the `proc-macro-warning` crate is not found during normal `cargo publish` invocation. We therefore always publish with the `publish` feature, that adapts the path for publishing. ```bash +# Smoke screen check semver: +cargo semver-checks -p proc-macro-warning +# Replace the version here: +git tag -s -a v1.0.1 -m "Version 1.0.1" # Check that it works -cargo publish -p proc-macro-warning --features publish --dry-run +cargo publish -p proc-macro-warning --dry-run # Actually do the publish -cargo publish -p proc-macro-warning --features publish +cargo publish -p proc-macro-warning ``` diff --git a/proc-macro-warning/Cargo.toml b/proc-macro-warning/Cargo.toml index 69e472a..4777cd3 100644 --- a/proc-macro-warning/Cargo.toml +++ b/proc-macro-warning/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "proc-macro-warning" -version = "1.0.1" +version = "1.0.2" edition = "2021" license = "GPL-3.0 OR Apache-2.0" authors = ["Oliver Tale-Yazdi "] @@ -20,4 +20,3 @@ derive = { path = "../ui-tests/derive" } default = ["derive_debug"] derive_debug = [] -publish = []