Commit 2a66e858 authored by Steven Fackler's avatar Steven Fackler
Browse files

Add a script to build docs with all features enabled

parent e85b49d3
Loading
Loading
Loading
Loading

build_docs.sh

0 → 100755
+10 −0
Original line number Diff line number Diff line
#!/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