Skip to content

Commit 300ac4b

Browse files
committed
Editorial changes for raw-dylib.
1 parent d6cd338 commit 300ac4b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/items/external-blocks.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -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
209209
knows that they have to be dynamically loaded at runtime.
210210

211211
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
213213
resolution logic to find that import library. Alternatively, specifying
214214
`kind = "raw-dylib"` instructs the compiler to generate an import library
215215
during 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
219219
x86 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

Comments
 (0)