-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Working towards a libc-less (wasm32) libstd #45725
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
r? @dtolnay (rust_highfive has picked a reviewer for you, use r? to override) |
@bors r+ |
📌 Commit db3d3f0 has been approved by |
⌛ Testing commit db3d3f00233eb4442c653549c7534ebcc676e106 with merge f080a4046c5e9bb23da1c0a1bc519c551408ec82... |
💔 Test failed - status-appveyor |
6ae7610
to
5b673fe
Compare
@bors: r=dtolnay |
📌 Commit 5b673fe has been approved by |
5b673fe
to
e82ce58
Compare
@bors: r=dtolnay |
📌 Commit e82ce58 has been approved by |
⌛ Testing commit e82ce589e7f13106d87317f186b275969e17117a with merge 5c430c47d8be405885401082eec445dfe7419d8d... |
💔 Test failed - status-travis |
unused_import on macOS when building libstd.
|
e82ce58
to
847660c
Compare
@bors: r=dtolnay |
📌 Commit 847660c has been approved by |
⌛ Testing commit 847660c3aeb2b81d3c836ee0cf0d93535c4cfdbc with merge de5fe8a8eca4f8bc459d7e48bd2497405b48fb37... |
💔 Test failed - status-travis |
847660c
to
eae99f0
Compare
@bors: r=dtolnay |
💔 Test failed - status-travis |
⌛ Testing commit 9435c71 with merge e811220421ad005f75424b01e78d7e1f88dbc39e... |
💔 Test failed - status-travis |
Working towards a libc-less (wasm32) libstd This is a series of commits I was able to extract from prepare to comiple libstd on a "bare libc-less" target, notably wasm32. The actual wasm32 bits I intend to send in a PR later, this is just some internal refactorings required for libstd to work with a `libc` that's empty and a few other assorted refactorings. No functional change should be included in this PR for users of libstd, this is intended to just be internal refactorings.
💔 Test failed - status-travis |
⌛ Testing commit 9435c71 with merge be37f638ce7a40244220df291e0b5652ffc005fa... |
💔 Test failed - status-travis |
@bord: retry |
Er sorry @bors: retry |
@bors treeclosed- p=0 |
⌛ Testing commit 9435c71 with merge a5e95f7d2c5e1e2cee0b8b528e956a0ad992d1aa... |
💔 Test failed - status-travis |
|
This commit removes usage of the `libc` crate in "portable" modules like those at the top level and `sys_common`. Instead common types like `*mut u8` or `u32` are used instead of `*mut c_void` or `c_int` as well as switching to platform-specific functions like `sys::strlen` instead of `libc::strlen`.
9435c71
to
5c3fe11
Compare
@bors: r=dtolnay |
📌 Commit 5c3fe11 has been approved by |
Working towards a libc-less (wasm32) libstd This is a series of commits I was able to extract from prepare to comiple libstd on a "bare libc-less" target, notably wasm32. The actual wasm32 bits I intend to send in a PR later, this is just some internal refactorings required for libstd to work with a `libc` that's empty and a few other assorted refactorings. No functional change should be included in this PR for users of libstd, this is intended to just be internal refactorings.
☀️ Test successful - status-appveyor, status-travis |
use io; | ||
use rand::Rng; | ||
|
||
// FIXME: Use rand: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please leave this FIXME
This is a series of commits I was able to extract from prepare to comiple libstd on a "bare libc-less" target, notably wasm32. The actual wasm32 bits I intend to send in a PR later, this is just some internal refactorings required for libstd to work with a
libc
that's empty and a few other assorted refactorings.No functional change should be included in this PR for users of libstd, this is intended to just be internal refactorings.