-
- Downloads
Prepare for being included via crates.io into std
This commit prepares the `libc` crate to be included directly into the standard library via crates.io. More details about this can be found on rust-lang/rust#56092, but the main idea is that this crate now depends on core/compiler-builtins explicitly (but off-by-default). The main caveat here is that this activates `no_core` when building as part of libstd, which means that it needs to explicitly have an `iter` and `option` module for the expansion of `for` loops to work.
Showing
- Cargo.toml 5 additions, 2 deletionsCargo.toml
- libc-test/build.rs 1 addition, 1 deletionlibc-test/build.rs
- src/lib.rs 16 additions, 5 deletionssrc/lib.rs
- src/unix/bsd/apple/mod.rs 2 additions, 2 deletionssrc/unix/bsd/apple/mod.rs
- src/unix/mod.rs 4 additions, 3 deletionssrc/unix/mod.rs
- src/windows.rs 1 addition, 1 deletionsrc/windows.rs
Loading
Please register or sign in to comment