Cargo.toml: More publish preparation (#43457)

Add further missing repository keys / descriptions, which I missed in
#43451 due to a suboptimal grep (assuming that rust-version.workspace is
always the last item).
Additionally fix crate self-references, which caused cargo-publish to
fail, due to it trying to fetch the crate from crates.io.
When specifying the current crate in `[dev-dependencies]` to enable a
test feature or similar, apparently one should not use `workspace =
true` and instead use `path`.
This requires extending the previously added `tidy` check, to allow
`path` dependencies in this specific case outside of the workspace
Cargo.toml.

Testing: Covered by existing tests

---------

Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
This commit is contained in:
Jonathan Schwender
2026-03-19 18:36:03 +01:00
committed by GitHub
parent 56e79459f2
commit a6b479d2cc
9 changed files with 43 additions and 4 deletions

View File

@@ -0,0 +1,12 @@
[package]
name = "test-package"
version = "0.0.1"
license = "MPL-2.0"
publish = false
[features]
test-feature = []
[dev-dependencies]
test-package = { path = "." }
other-name = { package = "test-package", path = "."}