Ed Page 5c0343317c
feat: emit a warning when both package.publish and --index are specified (#16268)
Partially adresses #16231.

### What does this PR try to resolve?

`cargo publish` will fail, if `--registry` is passed and that index
isn't included in `package.publish` in Cargo.toml. However, as described
in linked issue, `--index` bypasses that check and may cause unexpected
publication of packages.

This PR implements warning that is shown when `--index` and
`package.publish` is set at the same time.
2025-11-18 19:05:44 +00:00
..