Make stdbuild a cargo feature#764
Make stdbuild a cargo feature#764bors merged 3 commits intorust-lang:masterfrom tamird:cargo-feature-stdbuild
Conversation
| appveyor = { repository = "rust-lang-libs/libc" } | ||
|
|
||
| [features] | ||
| default = ["use_std"] |
There was a problem hiding this comment.
This was intentionally set up like this before (enabling std as a feaeture), could this be reverted?
There was a problem hiding this comment.
Sure. It's a bit more awkward because this setup allows stdbuild to depend on no_std, which can't be done in reverse, that's all.
|
This is green now, with the changes you requested. |
Cargo.toml
Outdated
| [features] | ||
| default = ["use_std"] | ||
| use_std = [] | ||
| stdbuild = [] |
There was a problem hiding this comment.
Can this be avoided in this Cargo.toml? Ideally this isn't exported as part of the public API
|
I suppose, but won't that mean we can never get rid of the shim in rustc?
Anyway, done.
…On Sep 12, 2017 00:11, "Alex Crichton" ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In Cargo.toml
<#764 (comment)>:
> @@ -20,6 +20,7 @@ appveyor = { repository = "rust-lang-libs/libc" }
[features]
default = ["use_std"]
use_std = []
+stdbuild = []
Can this be avoided in this Cargo.toml? Ideally this isn't exported as
part of the public API
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#764 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABdsPKuRnmWoqQxh7fleK3FOwVqMOI11ks5shgR2gaJpZM4PT93Q>
.
|
|
@bors: r+ AFAIK we have no path forward for using the libc crate as-is in rustbuild, we've got a long way to go to enable that. |
|
📌 Commit 8a7069f has been approved by |
Make stdbuild a cargo feature Also invert the default feature / no std arrangement. The default still uses std, but no_std now requires opt-in instead of opt-out. This is work toward removing the shim in rustc.
|
☀️ Test successful - status-appveyor, status-travis |
{compiler-builtins,libc} shim cleanup
~~Depends on rust-lang/libc#764; opening early for feedback.~~ r? @alexcrichton
{compiler-builtins,libc} shim cleanup
~~Depends on rust-lang/libc#764; opening early for feedback.~~ r? @alexcrichton
{compiler-builtins,libc} shim cleanup
~~Depends on rust-lang/libc#764; opening early for feedback.~~ r? @alexcrichton
{compiler-builtins,libc} shim cleanup
~~Depends on rust-lang/libc#764; opening early for feedback.~~ r? @alexcrichton
{compiler-builtins,libc} shim cleanup
~~Depends on rust-lang/libc#764; opening early for feedback.~~ r? @alexcrichton
Also invert the default feature / no std arrangement. The default
still uses std, but no_std now requires opt-in instead of opt-out.
This is work toward removing the shim in rustc.