-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Labels
A-new-lintArea: new lintArea: new lintC-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.
Description
I couldn't find this exact problem mentioned elsewhere.
Problem
Cargo rightly produces errors for uses of std within a crate but will not complain about dependencies that rely on std when building for platforms that support std. This means that an implicit std requirement can quietly sneak into a project. It seems rather bizarre that cargo does not catch this issue.
Possible Solution(s)
- Make cargo search for uses of
stdwhen building dependencies and produce an error - Do not permit
stdas a dependency in the dependency graph forno_stdcrates - Only permit dependencies that are explicitly tagged with
#![no_std]forno_stdcrates
Metadata
Metadata
Assignees
Labels
A-new-lintArea: new lintArea: new lintC-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.