Open paulrouget opened 1 year ago
The options that cargo supports should also be supported by cargo-udeps
. However, the released version of cargo-udeps is currently 1-2 versions behind the released version of cargo, so if you use newer -Z features they won't work. However, build-std should be present on the older versions of cargo that cargo-udeps uses.
Do you have any issues with just adding the -Z options?
I try passing these arguments:
> cargo +nightly udeps -p xxx --target=thumbv4t-none-eabi -Z build-std=core,alloc -Z build-std-features=compiler-builtins-mem
error: Found argument '-Z' which wasn't expected, or isn't valid in this context
I'm also hitting this. Is there any workaround for this?
My crate needs
-Z …
options (-Z build-std=core,alloc -Z build-std-features=compiler-builtins-mem
). Anyway to pass that as an option to cargo udeps?