Skip to content

Commit

Permalink
Note warning of default features on libc
Browse files Browse the repository at this point in the history
The default features of libc include libstd. This should be noted on this page.
  • Loading branch information
AtheMathmo committed Jun 7, 2016
1 parent 763f923 commit 299a1a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/doc/book/no-stdlib.md
Expand Up @@ -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
Expand Down

0 comments on commit 299a1a0

Please sign in to comment.