Skip to content
Snippets Groups Projects
  • Alex Crichton's avatar
    91bd079e
    Prepare for being included via crates.io into std · 91bd079e
    Alex Crichton authored
    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.
    91bd079e
    History
    Prepare for being included via crates.io into std
    Alex Crichton authored
    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.
This project manages its dependencies using Cargo. Learn more
Cargo.toml 858 B