From 195844792689ce1d8b85662928840315c3fad32d Mon Sep 17 00:00:00 2001 From: Jake Shadle Date: Fri, 19 Aug 2016 18:21:43 +0200 Subject: [PATCH 1/2] docs(manifest): Update crate-types with `cdylib` Rust 1.11 now supports the `cdylib` crate-type, so added it to the list of options. Also added a link to the [Linkage](https://doc.rust-lang.org/reference.html#linkage) section in the Rust Reference manual which explains what the different crate types actually mean in practice....though right now it actually doesn't explain what a `cdylib` is, specifically. ;) --- src/doc/manifest.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/doc/manifest.md b/src/doc/manifest.md index 805b7c384f0..f38f4826bd5 100644 --- a/src/doc/manifest.md +++ b/src/doc/manifest.md @@ -527,9 +527,13 @@ name = "..." crate-type = ["dylib"] # could be `staticlib` as well ``` -The available options are `dylib`, `rlib`, and `staticlib`. You should only use -this option in a project. Cargo will always compile packages (dependencies) -based on the requirements of the project that includes them. +The available options are `dylib`, `rlib`, `staticlib`, and, as of Rust 1.11, +`cdylib`. You should only use this option in a project. Cargo will always +compile packages (dependencies) based on the requirements of the project that +includes them. + +You can read more about the different crate types in the +[Rust Reference Manual](https://doc.rust-lang.org/reference.html#linkage) # The `[replace]` Section From c3a2e78b5610abbf6f83b46d8be55f20ddf52d83 Mon Sep 17 00:00:00 2001 From: Jake Shadle Date: Fri, 19 Aug 2016 18:32:22 +0200 Subject: [PATCH 2/2] docs(manifest): Remove 1.11 reference --- src/doc/manifest.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/doc/manifest.md b/src/doc/manifest.md index f38f4826bd5..675841784d7 100644 --- a/src/doc/manifest.md +++ b/src/doc/manifest.md @@ -527,10 +527,9 @@ name = "..." crate-type = ["dylib"] # could be `staticlib` as well ``` -The available options are `dylib`, `rlib`, `staticlib`, and, as of Rust 1.11, -`cdylib`. You should only use this option in a project. Cargo will always -compile packages (dependencies) based on the requirements of the project that -includes them. +The available options are `dylib`, `rlib`, `staticlib`, and `cdylib`. You +should only use this option in a project. Cargo will always compile packages +(dependencies) based on the requirements of the project that includes them. You can read more about the different crate types in the [Rust Reference Manual](https://doc.rust-lang.org/reference.html#linkage)