Add a script to build docs with all features enabled

This commit is contained in:
Steven Fackler 2015-12-18 22:14:32 -08:00
parent e85b49d375
commit 2a66e858ba
1 changed files with 10 additions and 0 deletions

10
build_docs.sh Executable file
View File

@ -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