Skip to content

Commit 61e765a

Browse files
Rollup merge of #37441 - federicomenaquintero:master, r=steveklabnik
reference: Mention --crate-type=cdylib in the Linkage section This option is missing in the docs! :)
2 parents 1d7e1b3 + 9f8d4ee commit 61e765a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/doc/reference.md

+6
Original file line numberDiff line numberDiff line change
@@ -4078,6 +4078,12 @@ be ignored in favor of only building the artifacts specified by command line.
40784078
Rust code into an existing non-Rust application because it will not have
40794079
dynamic dependencies on other Rust code.
40804080

4081+
* `--crate-type=cdylib`, `#[crate_type = "cdylib"]` - A dynamic system
4082+
library will be produced. This is used when compiling Rust code as
4083+
a dynamic library to be loaded from another language. This output type will
4084+
create `*.so` files on Linux, `*.dylib` files on OSX, and `*.dll` files on
4085+
Windows.
4086+
40814087
* `--crate-type=rlib`, `#[crate_type = "rlib"]` - A "Rust library" file will be
40824088
produced. This is used as an intermediate artifact and can be thought of as a
40834089
"static Rust library". These `rlib` files, unlike `staticlib` files, are

0 commit comments

Comments
 (0)