]> git.lizzy.rs Git - rust.git/commitdiff
Note warning of default features on libc
authorJames Lucas <AtheMathmo@users.noreply.github.com>
Tue, 7 Jun 2016 06:09:55 +0000 (23:09 -0700)
committerJames Lucas <AtheMathmo@users.noreply.github.com>
Tue, 7 Jun 2016 06:09:55 +0000 (23:09 -0700)
The default features of libc include libstd. This should be noted on this page.

src/doc/book/no-stdlib.md

index 9823a0b6d6355b7d5d3509549514f060fbad54d5..35d43184274ba6dcfc4179c61b1d5c3631453e79 100644 (file)
@@ -45,6 +45,9 @@ fn start(_argc: isize, _argv: *const *const u8) -> isize {
 # // fn main() {} tricked you, rustdoc!
 ```
 
+> Note: Ensure that you are not including the default features with libc. Otherwise you will
+> implicitly use libstd.
+
 To override the compiler-inserted `main` shim, one has to disable it
 with `#![no_main]` and then create the appropriate symbol with the
 correct ABI and the correct name, which requires overriding the