-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Ensure that an artifact is indeed no_std #5090
Copy link
Copy link
Closed as duplicate of#8798
Labels
A-dependency-resolutionArea: dependency resolution and the resolverArea: dependency resolution and the resolverA-new-lintArea: new lintArea: new lintC-enhancementCategory: enhancementCategory: enhancementS-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.
Description
Activity
Metadata
Metadata
Assignees
Labels
A-dependency-resolutionArea: dependency resolution and the resolverArea: dependency resolution and the resolverA-new-lintArea: new lintArea: new lintC-enhancementCategory: enhancementCategory: enhancementS-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.
It would be good if
cargo buildwould have a--nostdoption that would ensure that the resulting artifact doesn't indeed link against the std library and fails if this is the case.To check this, it needs to at least check that rustc is not called with the
stdfeature enabled. A bonus point would be to usenmon Linux and MacOSX (and its equivalent on windows) to check that the artifact does not contain anystdsymbols.