From c692e391e92612e3b5e72da851f18ce4e16ab764 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tau=20G=C3=A4rtli?= Date: Mon, 10 Jun 2024 13:08:04 +0200 Subject: [PATCH] Allow RUSTDOCFLAGS to be unset --- docs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs.sh b/docs.sh index 5b7f34a..480a103 100755 --- a/docs.sh +++ b/docs.sh @@ -6,7 +6,7 @@ metadata=$(cargo metadata --format-version 1 --no-deps | jq '.packages | map(sel features=$(echo "$metadata" | jq -r '.features | join(",")') export RUSTDOCFLAGS -RUSTDOCFLAGS="$RUSTDOCFLAGS $(echo "$metadata" | jq -r '.["rustdoc-args"] | join(" ")')" +RUSTDOCFLAGS="${RUSTDOCFLAGS:-} $(echo "$metadata" | jq -r '.["rustdoc-args"] | join(" ")')" echo "+ RUSTDOCFLAGS=$RUSTDOCFLAGS" > /dev/stderr echo "+ cargo doc ... --features $features" > /dev/stderr cargo +nightly doc -Zunstable-options -Zrustdoc-scrape-examples --features "$features"