You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ cargo test
error: failed to parse manifest at `/some/path/Cargo.toml`
Caused by:
`profile.test.codegen-backend` setting of `./some/path/to/codegenerator.dylib` is not a valid backend name.
Possible Solution(s)
Cargo source code is restricting it here to alphanumeric and _ characters.
I wasn't there, but the choice was made intentionally not accepting arbitrary pat seems intentional in #9118 (comment). From my understanding, we're still waiting for rust-lang/rust#81746.
Given you can set RUSTFLAGS, as well as there is also an unstable feature profile.<name>.rustflags, I feel like the workarounds here are sufficient at this moment. I am going to close this. Please call out if there is something I am missing. Thank you!
Problem
The
-Zcodegen-backend=<path>
flag[1] and thecodegen-backend
spec in cargo.toml[2] are incompatible,[1] https://doc.rust-lang.org/beta/unstable-book/compiler-flags/codegen-backend.html
[2] https://doc.rust-lang.org/cargo/reference/unstable.html#codegen-backend
Steps
Currently, I can do:
to run some tests using that code generator (mac os). That works.
I tried adding the following to Cargo.toml:
Now running
cargo test
givesPossible Solution(s)
Cargo source code is restricting it here to alphanumeric and
_
characters.cargo/src/cargo/util/toml/mod.rs
Line 788 in 928b956
Is that test too restrictive?
Notes
No response
Version
The text was updated successfully, but these errors were encountered: