Skip to content

Commit d387919

Browse files
committed
Update notes about static linking and MUSL
People often use the edition guide as general documentation of capabilities, not just for Rust 2018. There is extensive information on the web suggesting that Rust *only* supports static linking with MUSL. Add a note documenting current capabilities, so that people know they have a choice of libc implementations even if they need static linking.
1 parent b91a9a8 commit d387919

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/SUMMARY.md

+1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
- [Global allocators](rust-2018/platform-and-target-support/global-allocators.md)
8585
- [MSVC toolchain support](rust-2018/platform-and-target-support/msvc-toolchain-support.md)
8686
- [MUSL support for fully static binaries](rust-2018/platform-and-target-support/musl-support-for-fully-static-binaries.md)
87+
- Note: current Rust (as of 1.48) supports static binaries with either glibc or MUSL, so you can select whichever libc you need or prefer.
8788
- [`cdylib` crates for C interoperability](rust-2018/platform-and-target-support/cdylib-crates-for-c-interoperability.md)
8889

8990
## The Next Edition

src/rust-2018/platform-and-target-support/musl-support-for-fully-static-binaries.md

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
![Minimum Rust version: 1.1](https://img.shields.io/badge/Minimum%20Rust%20Version-1.1-brightgreen.svg)
44

5+
(Note: current Rust (as of 1.48) supports static linking with either glibc or
6+
MUSL, so you can select whichever libc you need or prefer.)
7+
58
By default, Rust will statically link all Rust code. However, if you use the
69
standard library, it will dynamically link to the system's `libc`
710
implementation.

0 commit comments

Comments
 (0)