FIGURES =$(wildcard assets/diagrams/namespaces/d2/*.d2)
SVG_OUTPUT_DIR = assets/diagrams/svg
all:
cargo build
spell-check:
@echo "Spell-checking source files..."
@typos --exclude '*.svg' --exclude 'third-party/' --exclude 'web-snapshots/'
semver-check:
cargo semver-checks
build-figs: $(FIGURES)
./scripts/build-diagrams --output $(SVG_OUTPUT_DIR) $?
doc:
cargo doc --no-deps -p rsmount-sys -p rsmount
doc-rebuild: build-figs doc
do-publish: build-figs
cargo publish
publish: test-all spell-check doc-rebuild semver-check
cargo publish --dry-run
test:
cargo nextest run
test-doc:
cargo test --doc
test-all: test test-doc