From d67d6232165b81e58b9bde5ef24e96c43da8ead8 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Thu, 11 May 2023 13:23:22 -0700 Subject: [PATCH] rustdocflags need to be the same as rustflags --- .cargo/config.toml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index f4ad2dbf..41beade0 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -5,4 +5,9 @@ rustflags = [ # tokio unstable is needed for tokio-console "--cfg", "tokio_unstable" ] -rustdocflags = ["--cfg", "tokio_unstable"] +rustdocflags = [ + # potentially faster. https://nnethercote.github.io/perf-book/build-configuration.html + "-C", "target-cpu=native", + # tokio unstable is needed for tokio-console + "--cfg", "tokio_unstable" +]