Skip to content

Commit a9899a7

Browse files
committed
Clarify confusing sentence in TRPL: FFI
After talking with @graydon on #rust-internals, this is hopefully clarifying. Fixes #25586
1 parent 7b0f2af commit a9899a7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/doc/trpl/ffi.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,10 @@ Note that frameworks are only available on OSX targets.
342342
The different `kind` values are meant to differentiate how the native library
343343
participates in linkage. From a linkage perspective, the rust compiler creates
344344
two flavors of artifacts: partial (rlib/staticlib) and final (dylib/binary).
345-
Native dynamic libraries and frameworks are propagated to the final artifact
346-
boundary, while static libraries are not propagated at all.
345+
Native dynamic library and framework dependencies are propagated to the final
346+
artifact boundary, while static library dependencies are not propagated at
347+
all, because the static libraries are integrated directly into the subsequent
348+
artifact.
347349
348350
A few examples of how this model can be used are:
349351

0 commit comments

Comments
 (0)