From: bors Date: Fri, 20 Jan 2017 20:57:21 +0000 (+0000) Subject: Auto merge of #3556 - KalitaAlexey:allow-examples-to-be-library, r=alexcrichton X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~11^2~24 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=de6bce9aaef528572cd2307fbf3b245c0dab8566;p=cargo.git Auto merge of #3556 - KalitaAlexey:allow-examples-to-be-library, r=alexcrichton Allow examples to be library This PR allows to specify **crate-type** to an example in **Cargo.toml**. After this PR an example's **crate-type** can be: * lib * rlib * dylib * proc-macro Please look at src/cargo/core/manifest.rs:116 because I am not sure whether I done it right. I haven't added any tests. I'd like to add them if someone says me how to do that. Fixes #2358. --- de6bce9aaef528572cd2307fbf3b245c0dab8566