cargo-bootstrap
cargo-bootstrap copied to clipboard
pytoml could not parse tar-0.4.7/Cargo.toml
cargo: Looking up info for tar 0.4
cargo: opening crate info: /tmp/cargo/crates.io-index/3/t/tar
cargo: best match is tar-0.4.7
cargo: failed to load toml file for: /tmp/cargo/tar-0.4.7 (/tmp/cargo/tar-0.4.7/Cargo.toml(27, 1): msg)
The problematic line is: [target.'cfg(unix)'.dependencies]
This is still an issue with pytoml 0.1.11, but I'm guessing the bug is better filed in the pytoml project (doesn't look like there's one currently).
I'm using pytoml 0.1.2 (debian gave me an old version shrug), and pytoml is able to parse that line but it parses it as target.cfg(unix).dependencies. That is, the literal string 'cfg(unix)' winds up as a dictionary key. That's probably good on pytoml's part, but then bootstrap.py ignores that dependency, and that is a nuissance. Some of these cfg(...) expressions can get pretty complicated so I'm not sure what the best remedy is.