@@ -122,7 +122,7 @@ specifies the kind of library with the following possible values:
122122- ` static ` — Indicates a static library.
123123- ` framework ` — Indicates a macOS framework. This is only valid for macOS
124124 targets.
125- - ` raw-dylib ` - Indicates a dynamic library where the compiler will generate
125+ - ` raw-dylib ` — Indicates a dynamic library where the compiler will generate
126126 an import library to link against (see [ ` dylib ` versus ` raw-dylib ` ] below
127127 for details). This is only valid for Windows targets.
128128
@@ -209,13 +209,13 @@ of the symbols exported by the dynamic library in such a way that the linker
209209knows that they have to be dynamically loaded at runtime.
210210
211211Specifying ` kind = "dylib" ` instructs the Rust compiler to link an import
212- library based on the ` name ` key, the linker will then use its normal library
212+ library based on the ` name ` key. The linker will then use its normal library
213213resolution logic to find that import library. Alternatively, specifying
214214` kind = "raw-dylib" ` instructs the compiler to generate an import library
215215during compilation and provide that to the linker instead.
216216
217- ` raw-dylib ` is only supported on Windows and not supported on x86
218- (` target_arch="x86" ` ), see [ 58713 ] . Using it when targeting other platforms or
217+ ` raw-dylib ` is only supported on Windows and not supported on 32-bit x86
218+ (` target_arch="x86" ` ). Using it when targeting other platforms or
219219x86 on Windows will result in a compiler error.
220220
221221### The ` link_name ` attribute
@@ -289,4 +289,3 @@ restrictions as [regular function parameters].
289289[ `bundle` documentation for rustc ] : ../../rustc/command-line-arguments.html#linking-modifiers-bundle
290290[ `whole-archive` documentation for rustc ] : ../../rustc/command-line-arguments.html#linking-modifiers-whole-archive
291291[ `dylib` versus `raw-dylib` ] : #dylib-versus-raw-dylib
292- [ 58713 ] : https://github.com/rust-lang/rust/issues/58713
0 commit comments