-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Remove use_std feature #657
Comments
What's the use-case for the |
Changing it can be a breaking change in some subtle situations so it wasn't turned off by deafult, but for the next major release it'll be turned off by default. |
Since this feature is enabled by default, this would only be a breaking change iff I have a proposal here. We could add a We might not be able to remove The question is whether doing this is worth it or not. |
Deprecate `use_std` cargo feature: use `std` instead . Related to #657 .
Deprecate `use_std` cargo feature: use `std` instead . Related to #657 .
Now the |
Is Short summary:
It was found this can be avoided by disabling While it looks like rustbuild issue what is the point of not linking to C library by default? AFAIK it would not hurt if C library was linked twice, by libstd and libc. |
Currently, there are three cases:
The I don't know why I think maybe we can unify these two. Have
Does this hold for statically linked C libraries as well ? How does this interact with the crt-static target feature? IIRC one shall not link the C libraries statically twice, and that's what the |
Lines 296 to 299 in 7c8e397
Although it may be oversimplified this example happen to work fine with dynamically linked glibc and |
EDIT(by @gnzlbg): I'm repurposing this issue to track the removal of the now deprecated
use_std
cargo feature. The original text of this issue follows.As recommended by https://github.com/brson/rust-api-guidelines#c-feature. This aligns better with the naming of implicit features inferred by Cargo.
The text was updated successfully, but these errors were encountered: