Hacker News new | ask | show | jobs
by acidbaseextract 1655 days ago
Yeah, that little bit made my jaw drop. Package manifests in a format the language doesn't have stdlib support for is insane.
1 comments

Hmm. How does cargo handle this? TOML is not in the rust stdlib either.
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