mirror of
https://github.com/Magnus167/rustframe.git
synced 2025-08-20 04:19:59 +00:00
16 lines
364 B
Bash
Executable File
16 lines
364 B
Bash
Executable File
#!/usr/bin/env sh
|
|
# Build and test the RustFrame user guide using mdBook.
|
|
set -e
|
|
# Ensure the library is compiled so examples can link against it.
|
|
|
|
cargo clean
|
|
|
|
cargo build --manifest-path ../Cargo.toml
|
|
# Run embedded code examples as tests.
|
|
mdbook test -L ../target/debug/deps "$@"
|
|
# Finally, render the book.
|
|
mdbook build "$@"
|
|
|
|
cargo build
|
|
cargo build --release
|