Files
james gilles 8a317041d4 Update Rust module documentation (#2050)
Co-authored-by: Phoebe Goldman <phoebe@goldman-tribe.org>
2025-02-21 03:48:46 +00:00

15 lines
479 B
Bash

#!/bin/env bash
# Script to run doctests.
# Note: if you get `cannot find type thing__TableHandle in this scope`, that
# means you forgot to properly wrap your doctest.
# See the top comment of README.md.
set -exo pipefail
# Test doctests
rustup run nightly cargo test --doc --target wasm32-unknown-unknown -Zdoctest-xcompile
# Make sure they also work outside wasm (use the proper boilerplate)
cargo test --doc
# And look for broken links
RUSTDOCFLAGS="-D warnings" cargo doc