]> git.proxmox.com Git - cargo.git/commit
Auto merge of #3556 - KalitaAlexey:allow-examples-to-be-library, r=alexcrichton
authorbors <bors@rust-lang.org>
Fri, 20 Jan 2017 20:57:21 +0000 (20:57 +0000)
committerbors <bors@rust-lang.org>
Fri, 20 Jan 2017 20:57:21 +0000 (20:57 +0000)
commitde6bce9aaef528572cd2307fbf3b245c0dab8566
treeedd39f58d5bc3fb75bd13c360600b67e2fe81cf6
parent3cad924968453d1d1d9f81ba6b55187fcb71a575
parente73e2706e48df64f07f01fb6b7a14f5687649e77
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.