39 lines
524 B
Makefile
39 lines
524 B
Makefile
.PHONY: build test bench fmt lint py sdist wheel wasm demo
|
|
|
|
|
|
build:
|
|
cargo build --release
|
|
|
|
|
|
test:
|
|
cargo test --all --release
|
|
|
|
|
|
bench:
|
|
cargo bench
|
|
|
|
|
|
fmt:
|
|
cargo fmt --all
|
|
cargo clippy --all-targets --all-features -- -D warnings
|
|
|
|
|
|
py:
|
|
maturin develop -m bindings/python/pyproject.toml
|
|
|
|
|
|
sdist:
|
|
maturin sdist -m bindings/python/pyproject.toml
|
|
|
|
|
|
wheel:
|
|
maturin build -m bindings/python/pyproject.toml --release
|
|
|
|
|
|
wasm:
|
|
wasm-pack build bindings/wasm --target web --release
|
|
|
|
|
|
demo:
|
|
python3 -m http.server -d bindings/wasm/pkg 8000
|