# Install dependencies deps: rustup component add clippy rustup component add rustfmt type cargo-readme >/dev/null || cargo +stable install cargo-readme # Reformat the source code fmt: cargo fmt # Check for mistakes lint: cargo clippy # Generate the docs doc: cargo doc # Open the docs in a browser doc-open: doc cargo doc --open # Run the tests test: cargo test # Install the binaries install: cargo install --path . --debug --force # Update README.md readme: cargo readme -o README.md # Bump crate versions version-bump version: sed -i '/\[.*\]/h;/version = ".*"/{x;s/\[package\]/version = "{{version}}"/;t;x}' Cargo.toml # Publish to crates.io publish: cargo publish