Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

How to Contribute Code

Would you like to contribute code to Crossbow? Here's how!

  1. Fork the dodorare/crossbow repository on GitHub, you'll need to create a GitHub account if you don't have one already.*
  2. Make your changes in a local clone of your fork.
  3. For a higher chance of CI passing the first time, consider run these commands from the root of your local clone:
    1. cargo fmt --all -- --check (remove --check to let the command fix found problems)
    2. cargo clippy --all-targets --all-features --locked -- -D warnings -A clippy::unnecessary-unwrap -A clippy::too-many-arguments -A clippy::result_large_err
    3. cargo test --all-targets --workspace --locked on macOS, or add --exclude crossbow-ios on non-Apple hosts. The crossbow-ios package links Apple frameworks and is tested separately by macOS CI.
  4. Push your changes to your fork and open a Pull Request.
  5. Respond to any CI failures or review feedback.

The same steps apply for any other repository in the organization that you would like to contribute to.