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"