Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add -Zbuild-std option? #153

Open
paulrouget opened this issue Feb 23, 2023 · 3 comments
Open

How to add -Zbuild-std option? #153

paulrouget opened this issue Feb 23, 2023 · 3 comments

Comments

@paulrouget
Copy link

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?

@est31
Copy link
Owner

est31 commented Feb 23, 2023

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?

@paulrouget
Copy link
Author

paulrouget commented Feb 24, 2023

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

@Qix-
Copy link

Qix- commented Nov 12, 2023

I'm also hitting this. Is there any workaround for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants