Skip to content

Commit 299a1a0

Browse files
committed
Note warning of default features on libc
The default features of libc include libstd. This should be noted on this page.
1 parent 763f923 commit 299a1a0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/doc/book/no-stdlib.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ fn start(_argc: isize, _argv: *const *const u8) -> isize {
4545
# // fn main() {} tricked you, rustdoc!
4646
```
4747

48+
> Note: Ensure that you are not including the default features with libc. Otherwise you will
49+
> implicitly use libstd.
50+
4851
To override the compiler-inserted `main` shim, one has to disable it
4952
with `#![no_main]` and then create the appropriate symbol with the
5053
correct ABI and the correct name, which requires overriding the

0 commit comments

Comments
 (0)