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

cargo udeps does not work on stage0_bin crate #4129

Closed
tiziano88 opened this issue Jul 3, 2023 · 1 comment
Closed

cargo udeps does not work on stage0_bin crate #4129

tiziano88 opened this issue Jul 3, 2023 · 1 comment

Comments

@tiziano88
Copy link
Collaborator

$ env --chdir=./stage0_bin cargo udeps
error: Package `test v0.0.0 (/nix/store/8y16j8ja4jpr61gxkq4mcqj5k94pk17z-rust-default-1.72.0-nightly-2023-07-03/lib/rustlib/src/rust/library/test)` does not have the feature `backtrace` 

It seems caused by the build-std config:

build-std = ["core"]

(removing it makes it work again)

Possibly related to est31/cargo-udeps#153

@conradgrobler
Copy link
Collaborator

It also does not work on oak_restricted_kernel_wrapper either. I think it is because cargo udeps still checks the test-related dependencies even if the binary is marked as having no tests and not benches in the Cargo.toml file.

@tiziano88 tiziano88 closed this as not planned Won't fix, can't repro, duplicate, stale Jul 31, 2024
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

2 participants