Inconsistencies with cargo's definition
Cargo has it's own definition of what it's toml file means, which is likely to be more accurate:
One issue that I've found is that:
- cargo_toml defines
package.publish
as a boolean - https://gitlab.com/crates.rs/cargo_toml/blob/master/src/cargo_toml.rs#L435-437 - Cargo defines it as either a Vec or a bool: https://github.com/rust-lang/cargo/blob/140144befaca191a76ac776f652d583c8927341a/src/cargo/util/toml/mod.rs#L631
This is problematic, because now that alternative registries has stabilized, if a default registry is defined, then cargo init
's toml file is not readable by cargo_toml.
Should this crate be deprecated in favour of using rust-lang/cargo::util::toml
?