From 299a1a06998fc97a74317a555bcb8202b29ed0ab Mon Sep 17 00:00:00 2001 From: James Lucas Date: Mon, 6 Jun 2016 23:09:55 -0700 Subject: [PATCH] Note warning of default features on libc The default features of libc include libstd. This should be noted on this page. --- src/doc/book/no-stdlib.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/doc/book/no-stdlib.md b/src/doc/book/no-stdlib.md index 9823a0b6d635..35d43184274b 100644 --- a/src/doc/book/no-stdlib.md +++ b/src/doc/book/no-stdlib.md @@ -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