From 2a66e858bad76d7650980eaa39863490cba3e30e Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Fri, 18 Dec 2015 22:14:32 -0800 Subject: [PATCH] Add a script to build docs with all features enabled --- build_docs.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 build_docs.sh diff --git a/build_docs.sh b/build_docs.sh new file mode 100755 index 000000000..3cfe1b79a --- /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 -- GitLab