Skip to content

Commit

Permalink
Allow RUSTDOCFLAGS to be unset
Browse files Browse the repository at this point in the history
  • Loading branch information
bash committed Jun 10, 2024
1 parent 6689bbb commit c692e39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit c692e39

Please sign in to comment.