Skip to content

Commit

Permalink
Do not alter crate names - hyphens are allowed [and MUST be used] in …
Browse files Browse the repository at this point in the history
…Cargo.toml when importing a crate whose name contains a hyphen. Fixes #93
  • Loading branch information
Luca Palmieri committed Sep 4, 2021
1 parent c16f6d0 commit 9473bf3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/skeleton/version_masking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ fn mask_local_dependency_versions(
if let Some(dependencies) = manifest.contents.get_mut(dependency_key) {
for local_package in local_package_names.iter() {
if let toml::Value::String(local_package) = local_package {
let local_package = local_package.replace("-", "_");
if let Some(local_dependency) = dependencies.get_mut(local_package) {
if let Some(version) = local_dependency.get_mut("version") {
*version = toml::Value::String(CONST_VERSION.to_string());
Expand Down

0 comments on commit 9473bf3

Please sign in to comment.