Skip to content

Commit

Permalink
Update notes about static linking and MUSL
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
joshtriplett committed Nov 19, 2020
1 parent b91a9a8 commit 964782b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

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

(Note: current Rust (as of 1.48) supports static linking with either glibc or
MUSL, so you can select whichever libc you need or prefer.)

By default, Rust will statically link all Rust code. However, if you use the
standard library, it will dynamically link to the system's `libc`
implementation.
Expand Down

0 comments on commit 964782b

Please sign in to comment.