Hacker News new | ask | show | jobs
by CameronNemo 1655 days ago
Hmm. How does cargo handle this? TOML is not in the rust stdlib either.
1 comments

I’m guessing the cargo binary has a TOML parser in it. As long as cargo itself doesn’t need TOML support to build that should be fine.
cargo itself does need TOML support to build because cargo itself is a Rust crate [0].

But it's not a problem because you build a new version of cargo with an older version of cargo that of course can parse TOML.

[0] https://github.com/rust-lang/cargo/blob/master/Cargo.toml