From: Kalita Alexey Date: Wed, 25 Jan 2017 06:52:59 +0000 (+0300) Subject: Fixed error X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~11^2~20^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5caee7f556e0f0838c53c405c21926349e9806cc;p=cargo.git Fixed error --- diff --git a/src/doc/manifest.md b/src/doc/manifest.md index b6bbb328e..0b3eff6fa 100644 --- a/src/doc/manifest.md +++ b/src/doc/manifest.md @@ -459,10 +459,13 @@ You can run individual executable examples with the command `cargo run --example Specify `crate-type` to make an example be compiled as a library: ```toml -[[example.foo]] +[[example]] +name = "foo" crate-type = ["staticlib"] ``` +You can build individual library examples with the command `cargo build --example `. + # Tests When you run `cargo test`, Cargo will: