From f008b6dd9bd12b7b28493d32462036b018d16671 Mon Sep 17 00:00:00 2001 From: Tipragot Date: Thu, 22 Feb 2024 20:35:07 +0000 Subject: [PATCH] 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