From 392594eefbffefba75aee2fc9f3e29f1828f41b6 Mon Sep 17 00:00:00 2001 From: Tipragot Date: Thu, 22 Feb 2024 17:33:35 +0100 Subject: [PATCH] Make the build time faster for development --- .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