diff options
| author | Steven Fackler <[email protected]> | 2015-12-18 22:14:32 -0800 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2015-12-18 22:14:32 -0800 |
| commit | 2a66e858bad76d7650980eaa39863490cba3e30e (patch) | |
| tree | 408dab662562c74093637570cddab188dd3d6d9b | |
| parent | Work around the worst of clone bogusness (diff) | |
| download | rust-openssl-2a66e858bad76d7650980eaa39863490cba3e30e.tar.xz rust-openssl-2a66e858bad76d7650980eaa39863490cba3e30e.zip | |
Add a script to build docs with all features enabled
| -rwxr-xr-x | build_docs.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/build_docs.sh b/build_docs.sh new file mode 100755 index 00000000..3cfe1b79 --- /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 |