diff options
| author | bors <bors@rust-lang.org> | 2016-10-28 10:20:55 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-10-28 10:20:55 -0700 |
| commit | 421b595f25e5dbab9c967afd03929d013f346322 (patch) | |
| tree | 0b59aec9588a4d629bf8ad15509f35d6ae33d9a1 /src/doc/reference.md | |
| parent | 36d746718086dfcc12f73562b1996daf2f8ba643 (diff) | |
| parent | 61e765ad982c7b01753ebe9971b4ce407bbdb0d9 (diff) | |
Auto merge of #37450 - GuillaumeGomez:rollup, r=GuillaumeGomez
Rollup of 5 pull requests - Successful merges: #36206, #37343, #37430, #37436, #37441 - Failed merges:
Diffstat (limited to 'src/doc/reference.md')
| -rw-r--r-- | src/doc/reference.md | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/doc/reference.md b/src/doc/reference.md index 84f459bf872..80b60fbf0e3 100644 --- a/src/doc/reference.md +++ b/src/doc/reference.md @@ -4078,6 +4078,12 @@ be ignored in favor of only building the artifacts specified by command line. Rust code into an existing non-Rust application because it will not have dynamic dependencies on other Rust code. +* `--crate-type=cdylib`, `#[crate_type = "cdylib"]` - A dynamic system + library will be produced. This is used when compiling Rust code as + a dynamic library to be loaded from another language. This output type will + create `*.so` files on Linux, `*.dylib` files on OSX, and `*.dll` files on + Windows. + * `--crate-type=rlib`, `#[crate_type = "rlib"]` - A "Rust library" file will be produced. This is used as an intermediate artifact and can be thought of as a "static Rust library". These `rlib` files, unlike `staticlib` files, are |
