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", ]