Skip to content

Ensure that an artifact is indeed no_std #5090

Description

@gnzlbg

It would be good if cargo build would have a --nostd option 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 std feature enabled. A bonus point would be to use nm on Linux and MacOSX (and its equivalent on windows) to check that the artifact does not contain any std symbols.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-dependency-resolutionArea: dependency resolution and the resolverA-new-lintArea: new lintC-enhancementCategory: enhancementS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions