From f008b6dd9bd12b7b28493d32462036b018d16671 Mon Sep 17 00:00:00 2001 From: Tipragot Date: Thu, 22 Feb 2024 20:35:07 +0000 Subject: [PATCH 1/2] Make the build time faster for development (#64) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Tipragot Reviewed-on: https://git.tipragot.fr/corentin/border-wars/pulls/64 Reviewed-by: Corentin Reviewed-by: Raphaël --- .cargo/config.toml | 2 ++ Cargo.toml | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..1aa838e --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,2 @@ +[build] +rustflags = ["-Z", "threads=8"] diff --git a/Cargo.toml b/Cargo.toml index b174bb5..3167a4e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,3 +10,9 @@ missing_docs_in_private_items = "warn" unwrap_in_result = "warn" unwrap_used = "warn" nursery = "warn" + +[profile.dev] +opt-level = 1 + +[profile.dev.package."*"] +opt-level = 3 From d5840eaabea8f7815ea38087a58ee0050d12027d Mon Sep 17 00:00:00 2001 From: Tipragot Date: Thu, 22 Feb 2024 20:36:09 +0000 Subject: [PATCH 2/2] Remove useless dependencies (#62) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Tipragot Reviewed-on: https://git.tipragot.fr/corentin/border-wars/pulls/62 Reviewed-by: Corentin Reviewed-by: Raphaël --- crates/border-wars/Cargo.toml | 2 -- 1 file changed, 2 deletions(-) diff --git a/crates/border-wars/Cargo.toml b/crates/border-wars/Cargo.toml index ccb73ba..fc84f96 100644 --- a/crates/border-wars/Cargo.toml +++ b/crates/border-wars/Cargo.toml @@ -14,6 +14,4 @@ workspace = true bevy = "0.12.1" bevy_egui = "0.24.0" noise = "0.8.2" -num = "0.4.1" -partial-min-max = "0.4.0" paste = "1.0.14"