From 5fc3d2b81d1ce99acca4ba2a7219dc0a443d72c1 Mon Sep 17 00:00:00 2001 From: Maybe Waffle Date: Mon, 3 Oct 2022 04:01:23 +0400 Subject: [PATCH] Fix how we set `rustdocflags` in the cargo config --- .cargo/config.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/.cargo/config.toml b/.cargo/config.toml index b565a218..a16645bb 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -9,5 +9,6 @@ docs = """doc --features=tokio/macros --features=tokio/rt-multi-thread """ +[build] # We pass "--cfg docsrs" when building docs to add `This is supported on feature="..." only.` rustdocflags = ["--cfg", "docsrs", "-Znormalize-docs"]