@@ -122,7 +122,7 @@ specifies the kind of library with the following possible values:
122
122
- ` static ` — Indicates a static library.
123
123
- ` framework ` — Indicates a macOS framework. This is only valid for macOS
124
124
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
126
126
an import library to link against (see [ ` dylib ` versus ` raw-dylib ` ] below
127
127
for details). This is only valid for Windows targets.
128
128
@@ -209,13 +209,13 @@ of the symbols exported by the dynamic library in such a way that the linker
209
209
knows that they have to be dynamically loaded at runtime.
210
210
211
211
Specifying ` 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
213
213
resolution logic to find that import library. Alternatively, specifying
214
214
` kind = "raw-dylib" ` instructs the compiler to generate an import library
215
215
during compilation and provide that to the linker instead.
216
216
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
219
219
x86 on Windows will result in a compiler error.
220
220
221
221
### The ` link_name ` attribute
@@ -289,4 +289,3 @@ restrictions as [regular function parameters].
289
289
[ `bundle` documentation for rustc ] : ../../rustc/command-line-arguments.html#linking-modifiers-bundle
290
290
[ `whole-archive` documentation for rustc ] : ../../rustc/command-line-arguments.html#linking-modifiers-whole-archive
291
291
[ `dylib` versus `raw-dylib` ] : #dylib-versus-raw-dylib
292
- [ 58713 ] : https://github.com/rust-lang/rust/issues/58713
0 commit comments