From 1c4f9ade27b6c30a91392cd05d0d59652cb3e674 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Tue, 14 Nov 2023 16:36:48 -0800 Subject: [PATCH] try parallel build frontend --- .cargo/config.toml | 4 ++++ docker/cargo-config.toml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.cargo/config.toml b/.cargo/config.toml index 86f4cdb9..a715dd88 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -8,6 +8,8 @@ rustflags = [ "--cfg", "tokio_unstable", # uuid unstable is needed for zerocopy deserialize "--cfg", "uuid_unstable", + # parallel build frontend + "-Z", "threads=0", ] rustdocflags = [ # potentially faster. https://github.com/aws/aws-graviton-getting-started/blob/main/rust.md @@ -18,6 +20,8 @@ rustdocflags = [ "--cfg", "tokio_unstable", # uuid unstable is needed for zerocopy deserialize "--cfg", "uuid_unstable", + # parallel build frontend + "-Z", "threads=0", ] [registries.crates-io] diff --git a/docker/cargo-config.toml b/docker/cargo-config.toml index 1ac0a631..d47d2e07 100644 --- a/docker/cargo-config.toml +++ b/docker/cargo-config.toml @@ -9,6 +9,8 @@ rustflags = [ "--cfg", "tokio_unstable", # uuid unstable is needed for zerocopy deserialize "--cfg", "uuid_unstable", + # parallel build frontend + "-Z", "threads=0", ] [target.aarch64-unknown-linux-gnu] @@ -24,4 +26,6 @@ rustflags = [ "--cfg", "tokio_unstable", # uuid unstable is needed for zerocopy deserialize "--cfg", "uuid_unstable", + # parallel build frontend + "-Z", "threads=0", ]