]> git.proxmox.com Git - cargo.git/commitdiff
Auto merge of #1443 - alexcrichton:hyphens-to-underscores, r=alexcrichton
authorbors <bors@rust-lang.org>
Wed, 25 Mar 2015 02:30:58 +0000 (02:30 +0000)
committerbors <bors@rust-lang.org>
Wed, 25 Mar 2015 02:30:58 +0000 (02:30 +0000)
This change allows *packages* to have hyphens in them, but they are always
translated to underscores when translated to a crate name. This means that all
crates are compiled with a `--crate-name` that has no hyphens (as well as
`--extern` directives having no hyphens).

Binaries and examples, however, are allowed to contain
hyphens in their name. The "crate name" will still have an underscore, but the
output will be in the same dasherized name.

Explicitly named targets are not allowed to have hyphens in them as well.


Trivial merge