]> git.proxmox.com Git - cargo.git/commitdiff
auto merge of #698 : eagleflo/cargo/new-invalid-characters, r=alexcrichton
authorbors <bors@rust-lang.org>
Tue, 14 Oct 2014 19:59:57 +0000 (19:59 +0000)
committerbors <bors@rust-lang.org>
Tue, 14 Oct 2014 19:59:57 +0000 (19:59 +0000)
Crate names have tight restrictions in Rust. `cargo new` should not allow invalid characters in crate names, as such crates will just fail to compile later on.

This check is based on the one found in rustc's `validate_crate_name` (https://github.com/rust-lang/rust/blob/master/src/librustc/metadata/creader.rs#L185-L189).


Trivial merge