From 4cd9c6d3d3d793e14248904ad96a7c9fe89ab6d2 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Tue, 25 Jan 2022 12:30:15 +0100 Subject: [PATCH] Rename packages to snake case I much prefer kebab case, but snake case is better here since Rust would convert it to snake case when used as an identifier anyways and you also can't use snake case modules without explicit module path attributes. --- Cargo.lock | 43 ++++++++++++++++++- Cargo.toml | 2 +- {nih-plug => nih_plug}/Cargo.lock | 0 {nih-plug => nih_plug}/Cargo.toml | 2 +- {nih-plug => nih_plug}/src/lib.rs | 0 {nih-plug => nih_plug}/src/params.rs | 0 {nih-plug => nih_plug}/src/plugin.rs | 0 .../Cargo.toml | 2 +- .../src/lib.rs | 0 9 files changed, 44 insertions(+), 5 deletions(-) rename {nih-plug => nih_plug}/Cargo.lock (100%) rename {nih-plug => nih_plug}/Cargo.toml (89%) rename {nih-plug => nih_plug}/src/lib.rs (100%) rename {nih-plug => nih_plug}/src/params.rs (100%) rename {nih-plug => nih_plug}/src/plugin.rs (100%) rename {nih-plug-derive => nih_plug_derive}/Cargo.toml (89%) rename {nih-plug-derive => nih_plug_derive}/src/lib.rs (100%) diff --git a/Cargo.lock b/Cargo.lock index 7e488d47..e476cbc8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3,9 +3,48 @@ version = 3 [[package]] -name = "nih-plug" +name = "nih_plug" version = "0.1.0" [[package]] -name = "nih-plug-derive" +name = "nih_plug_derive" version = "0.1.0" +dependencies = [ + "quote", + "syn", +] + +[[package]] +name = "proc-macro2" +version = "1.0.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7342d5883fbccae1cc37a2353b09c87c9b0f3afd73f5fb9bba687a1f733b029" +dependencies = [ + "unicode-xid", +] + +[[package]] +name = "quote" +version = "1.0.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "864d3e96a899863136fc6e99f3d7cae289dafe43bf2c5ac19b70df7210c0a145" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "syn" +version = "1.0.86" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a65b3f4ffa0092e9887669db0eae07941f023991ab58ea44da8fe8e2d511c6b" +dependencies = [ + "proc-macro2", + "quote", + "unicode-xid", +] + +[[package]] +name = "unicode-xid" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3" diff --git a/Cargo.toml b/Cargo.toml index b1be24df..63a7effc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,2 +1,2 @@ [workspace] -members = ["nih-plug", "nih-plug-derive"] +members = ["nih_plug", "nih_plug_derive"] diff --git a/nih-plug/Cargo.lock b/nih_plug/Cargo.lock similarity index 100% rename from nih-plug/Cargo.lock rename to nih_plug/Cargo.lock diff --git a/nih-plug/Cargo.toml b/nih_plug/Cargo.toml similarity index 89% rename from nih-plug/Cargo.toml rename to nih_plug/Cargo.toml index 4309dd66..aa890d97 100644 --- a/nih-plug/Cargo.toml +++ b/nih_plug/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "nih-plug" +name = "nih_plug" version = "0.1.0" edition = "2021" authors = ["Robbert van der Helm "] diff --git a/nih-plug/src/lib.rs b/nih_plug/src/lib.rs similarity index 100% rename from nih-plug/src/lib.rs rename to nih_plug/src/lib.rs diff --git a/nih-plug/src/params.rs b/nih_plug/src/params.rs similarity index 100% rename from nih-plug/src/params.rs rename to nih_plug/src/params.rs diff --git a/nih-plug/src/plugin.rs b/nih_plug/src/plugin.rs similarity index 100% rename from nih-plug/src/plugin.rs rename to nih_plug/src/plugin.rs diff --git a/nih-plug-derive/Cargo.toml b/nih_plug_derive/Cargo.toml similarity index 89% rename from nih-plug-derive/Cargo.toml rename to nih_plug_derive/Cargo.toml index fd312fbd..bc40e573 100644 --- a/nih-plug-derive/Cargo.toml +++ b/nih_plug_derive/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "nih-plug-derive" +name = "nih_plug_derive" version = "0.1.0" edition = "2021" authors = ["Robbert van der Helm "] diff --git a/nih-plug-derive/src/lib.rs b/nih_plug_derive/src/lib.rs similarity index 100% rename from nih-plug-derive/src/lib.rs rename to nih_plug_derive/src/lib.rs