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

Special-case rustc-std-workspace-core #65

Open
sunfishcode opened this issue Nov 3, 2021 · 0 comments
Open

Special-case rustc-std-workspace-core #65

sunfishcode opened this issue Nov 3, 2021 · 0 comments

Comments

@sunfishcode
Copy link

rustc-std-workspace-core is an explicitly empty crate used by some low-level no_std crates in the Rust ecosystem, such as libc, when the rustc-dep-of-std feature is enabled. It's completely empty, so it doesn't declare #[no_std], so cargo nono flags it as not supporting no_std. For example, within the libc crate:

$ cargo nono check --features rustc-dep-of-std
libc: SUCCESS
rustc-std-workspace-core: FAILURE
  - Did not find a #![no_std] attribute or a simple conditional attribute like #[cfg_attr(not(feature = "std"), no_std)] in the crate source. Crate most likely doesn't support no_std without changes.

It'd be convenient if cargo-nono would special-case rustc-std-workspace-core and suppress this error.

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

1 participant