From a2006ce6f0473578e6457d200a2e61b9ffb2be48 Mon Sep 17 00:00:00 2001 From: Romain Ruetschi <106849+romac@users.noreply.github.com> Date: Thu, 19 Oct 2023 11:21:36 +0200 Subject: [PATCH] Prefix crate names with `malachite-` --- Code/Cargo.toml | 2 +- Code/common/Cargo.toml | 4 +--- Code/{round-sm => round}/Cargo.toml | 4 ++-- Code/{round-sm => round}/rustfmt.toml | 0 Code/{round-sm => round}/src/events.rs | 0 Code/{round-sm => round}/src/lib.rs | 2 +- Code/{round-sm => round}/src/message.rs | 0 Code/{round-sm => round}/src/state.rs | 0 Code/{round-sm => round}/src/state_machine.rs | 0 9 files changed, 5 insertions(+), 7 deletions(-) rename Code/{round-sm => round}/Cargo.toml (64%) rename Code/{round-sm => round}/rustfmt.toml (100%) rename Code/{round-sm => round}/src/events.rs (100%) rename Code/{round-sm => round}/src/lib.rs (71%) rename Code/{round-sm => round}/src/message.rs (100%) rename Code/{round-sm => round}/src/state.rs (100%) rename Code/{round-sm => round}/src/state_machine.rs (100%) diff --git a/Code/Cargo.toml b/Code/Cargo.toml index f59016dfe..098f580af 100644 --- a/Code/Cargo.toml +++ b/Code/Cargo.toml @@ -3,5 +3,5 @@ resolver = "2" members = [ "common", - "round-sm" + "round" ] diff --git a/Code/common/Cargo.toml b/Code/common/Cargo.toml index b7723d9c7..fce013333 100644 --- a/Code/common/Cargo.toml +++ b/Code/common/Cargo.toml @@ -1,8 +1,6 @@ [package] -name = "common" +name = "malachite-common" version = "0.1.0" edition = "2021" -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - [dependencies] diff --git a/Code/round-sm/Cargo.toml b/Code/round/Cargo.toml similarity index 64% rename from Code/round-sm/Cargo.toml rename to Code/round/Cargo.toml index f65dc4f6e..02839bb0e 100644 --- a/Code/round-sm/Cargo.toml +++ b/Code/round/Cargo.toml @@ -1,9 +1,9 @@ [package] -name = "round-sm" +name = "malachite-round" version = "0.1.0" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -common = { version = "0.1.0", path = "../common" } +malachite-common = { version = "0.1.0", path = "../common" } diff --git a/Code/round-sm/rustfmt.toml b/Code/round/rustfmt.toml similarity index 100% rename from Code/round-sm/rustfmt.toml rename to Code/round/rustfmt.toml diff --git a/Code/round-sm/src/events.rs b/Code/round/src/events.rs similarity index 100% rename from Code/round-sm/src/events.rs rename to Code/round/src/events.rs diff --git a/Code/round-sm/src/lib.rs b/Code/round/src/lib.rs similarity index 71% rename from Code/round-sm/src/lib.rs rename to Code/round/src/lib.rs index 40ed5a8b0..ee336d3bb 100644 --- a/Code/round-sm/src/lib.rs +++ b/Code/round/src/lib.rs @@ -1,4 +1,4 @@ -pub use common::*; +pub use malachite_common::*; pub mod events; pub mod message; diff --git a/Code/round-sm/src/message.rs b/Code/round/src/message.rs similarity index 100% rename from Code/round-sm/src/message.rs rename to Code/round/src/message.rs diff --git a/Code/round-sm/src/state.rs b/Code/round/src/state.rs similarity index 100% rename from Code/round-sm/src/state.rs rename to Code/round/src/state.rs diff --git a/Code/round-sm/src/state_machine.rs b/Code/round/src/state_machine.rs similarity index 100% rename from Code/round-sm/src/state_machine.rs rename to Code/round/src/state_machine.rs