Skip to content

Latest commit

 

History

History
62 lines (48 loc) · 1.73 KB

File metadata and controls

62 lines (48 loc) · 1.73 KB

Contributing to tornade-core

Thank you for your interest in contributing! This guide covers everything you need to get started.

Getting Started

  1. Fork the repository on GitHub
  2. Clone your fork:
    git clone https://github.com/<your-username>/tornade-core.git
    cd tornade-core
  3. Build and test to verify your environment:
    cargo build
    cargo test

Submitting Changes

  1. Create a branch for your change:
    git checkout -b fix/my-improvement
  2. Make your changes
  3. Run quality checks before committing:
    cargo fmt
    cargo clippy -- -D warnings
    cargo test --all-features
  4. Commit and push:
    git push origin fix/my-improvement
  5. Open a pull request on GitHub — CI will run automatically on Linux, macOS, and Windows

Code Style

  • Formatting: cargo fmt — all code must pass cargo fmt -- --check
  • Linting: cargo clippy -- -D warnings — no clippy warnings allowed
  • Tests: all new functionality must include tests; run cargo test --all-features

Commit Message Conventions

Use the imperative mood in the subject line:

  • Add support for ALAC metadata
  • Fix panic when audio queue is empty
  • Refactor database connection pooling

Keep subject lines under 72 characters. Add a body if the change needs explanation.

Reporting Bugs

Open an issue at github.com/tornade-player/tornade-core/issues with:

  • Your operating system and Rust version (rustc --version)
  • Steps to reproduce the issue
  • Expected vs. actual behavior

License

By contributing, you agree that your contributions will be licensed under the MIT License.