-
-
Notifications
You must be signed in to change notification settings - Fork 3k
per-package-target unifies features which can conflict with other targets #9521
Copy link
Copy link
Open
Labels
C-bugCategory: bugCategory: bugS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.S-needs-mentorStatus: Issue or feature is accepted, but needs a team member to commit to helping and reviewing.Status: Issue or feature is accepted, but needs a team member to commit to helping and reviewing.Z-per-package-targetNightly: per-package-targetNightly: per-package-target
Description
Metadata
Metadata
Assignees
Labels
C-bugCategory: bugCategory: bugS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.S-needs-mentorStatus: Issue or feature is accepted, but needs a team member to commit to helping and reviewing.Status: Issue or feature is accepted, but needs a team member to commit to helping and reviewing.Z-per-package-targetNightly: per-package-targetNightly: per-package-target
Type
Fields
Give feedbackNo fields configured for issues without a type.
Problem
'cargo build --verbose' seems to indicate that rustc is compiling for the wrong target.
Steps
3.Note the rustc error compiling the void (1.0.2) crate
...
stdis required byvoidbecause it does not declare#![no_std]Partial Workaround
However, this doesn't work with vscode.
Sadly then I can't build the raspberry pi 4 target.
Notes
It seems positive that all build targets (x86, thumbv7em-none-eabihf, thumbv7m-none-eabi, armv7-unknown-linux-musleabihf) work perfectly if I run 'cargo build' from their respective workspace package dirs. (slight graph miscalculation when compiled from the root of the workspace?)
I note that the void crate is designed to work with std and no-std. However, the rustc error might indicate that rustc needs to have a slightly more robust check to detect how the void crate uses cfg or cfg_attr to support both environments?
Output of
cargo version:cargo 1.54.0-nightly (e931e47 2021-05-24)