mirror of
https://github.com/rust-lang/cargo
synced 2024-10-13 11:12:25 +00:00
b2c162c067
fix(toml): Improve parse errors ### What does this PR try to resolve? When we adopted `toml_edit`, we got TOML syntax errors that showed the context for where the error occurred. However, the work was not done to extend this to semantic errors reported by serde. This updates `Cargo.toml` and `Cargo.lock` code to provide that context on semantic errors. `config.toml` is not done because the schema is decentralized. In theory, this will also improve performance because we aren't having to allocate a lot of intermediate data to then throw away for every `Cargo.toml` we read. ### How should we test and review this PR? Check by commit to see this change gradually. - The `package.cargo-features` change was made to drop out dependence on `toml::Table` so we could do the direct deserialization |
||
---|---|---|
.. | ||
build-std | ||
testsuite |