diff --git a/build_docs.sh b/build_docs.sh new file mode 100755 index 0000000000000000000000000000000000000000..3cfe1b79ab24988fc8456d9cf4d7c308bb38b356 --- /dev/null +++ b/build_docs.sh @@ -0,0 +1,10 @@ +#!/bin/bash +set -e + +export CARGO_TARGET_DIR=target + +for toml in $(find . -maxdepth 2 -name "Cargo.toml"); do + cargo update --manifest-path $toml || true + features=$(cargo read-manifest --manifest-path $toml | jq -r '.features|keys|join(" ")') + cargo doc --verbose --no-deps --manifest-path $toml --features "$features" +done