]> git.proxmox.com Git - cargo.git/commit
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)
commita846371a3fdd31434d8eaed1154e13bf91303f61
tree7c007a86b68f119cf4a657d91df0b2ea8183f326
parent2459dfd8781899bdbf17bbf6b1e15b300b474746
parent9a387087cc8d33a00fbaea480af3cd64b9a6c051
auto merge of #698 : eagleflo/cargo/new-invalid-characters, r=alexcrichton

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).