about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2016-10-28 17:05:48 +0200
committerGitHub <noreply@github.com>2016-10-28 17:05:48 +0200
commit61e765ad982c7b01753ebe9971b4ce407bbdb0d9 (patch)
treeb48c997e38ebbac14fa72b220a06c69fadb7a1de
parent1d7e1b3552053f3b4a968f5fa04683d8c8f0b27d (diff)
parent9f8d4ee74d4dfb257cfc087b53c97b092982f8e9 (diff)
downloadrust-61e765ad982c7b01753ebe9971b4ce407bbdb0d9.tar.gz
rust-61e765ad982c7b01753ebe9971b4ce407bbdb0d9.zip
Rollup merge of #37441 - federicomenaquintero:master, r=steveklabnik
reference: Mention --crate-type=cdylib in the Linkage section

This option is missing in the docs! :)
-rw-r--r--src/doc/reference.md6
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