Skip to content

Commit

Permalink
Improve some editorial bits and weaken claim
Browse files Browse the repository at this point in the history
Let's say "may" rather than "will" here.
  • Loading branch information
traviscross committed Jul 23, 2024
1 parent b8b1557 commit a4dd053
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/linkage.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ be ignored in favor of only building the artifacts specified by command line.
linking Rust code into an existing non-Rust application
because it will not have dynamic dependencies on other Rust code.

Note that, because the resulting static library contains all of the
Note that, because the resulting static library contains the code of all the
dependencies, including the standard library, and also exports all public
symbols of them, linking the static library into an executable or shared
library will need special care. In case of a shared library the list of
library may need special care. In case of a shared library the list of
exported symbols will have to be limited via e.g. a linker or symbol version
script, exported symbols list (macOS) or module definition file (Windows).
script, exported symbols list (macOS), or module definition file (Windows).
Additionally, unused sections can be removed to remove all code of
dependencies that is not actually used (e.g. `--gc-sections` or
`-dead_strip` for macOS).
dependencies that is not actually used (e.g. `--gc-sections` or `-dead_strip`
for macOS).

* `--crate-type=cdylib`, `#![crate_type = "cdylib"]` - A dynamic system
library will be produced. This is used when compiling
Expand Down

0 comments on commit a4dd053

Please sign in to comment.