More lenient parsing of rustc arguments#201
Conversation
|
I can confirm that it manages to build the project I initially encountered this with (419 webserver-ish dependencies plus the crate itself) just fine on first try. Regarding the "testing it on lots of real-world projects would be welcome" from the issue; I'm trying to check this with a CI pipeline, but I'm neither sure whether it'll work, nor how long it'll take so I'm probably of little help on that end. |
|
I've built 1650 randomly selected binary and cdylib crates from crates.io on this branch and that didn't turn up any issues. I'll do a more in-depth run overnight. |
Do not assume that if
--crate-nameis present,--out-dirmust be present also. Instead allow them to be absent at the parsing stage, run the full detection logic for non-compilation commands, and only error out of the command looks like a compilation one.Fixes #198