Thank you for your interest in contributing to TurboPlot! This guide provides basic instructions on setting up your development environment and creating a release.
To ensure code quality and consistency, we use pre-commit hooks.
You can use pre-commit or it's rust equivalent prek.
-
Installation:
# Rust cargo install --locked prek # Python pip install pre-commit
-
Hooks setup: Run the following command in the repository root:
# Rust prek install # Python pre-commit install
This will install the git hooks that run checks (formatting, clippy, etc.) automatically when you commit changes.
To create a new release, follow these steps:
-
Update the Version: Bump the version number in
Cargo.toml:[package] version = "1.2.3" # Update this
-
Commit the Change:
git add Cargo.toml git commit -m "chore: bump version to 1.2.3" git push origin master -
Publish to crates.io: Ensure you are logged in (
cargo login) and have the necessary permissions.cargo publish
-
Create and Push a Tag: The release workflow is triggered by tags starting with
v.git tag v1.2.3 git push origin v1.2.3
-
Automatic Build: The GitHub Actions workflow will automatically:
- Build
turboplotfor Linux, Windows, and macOS. - Create a GitHub Release for
v1.2.3. - Upload the built binaries as release assets.
- Build