Skip to content

Latest commit

 

History

History
65 lines (46 loc) · 1.69 KB

CONTRIBUTING.md

File metadata and controls

65 lines (46 loc) · 1.69 KB

Contributing

Thank you for your interest in improving bimap-rs!

  1. How to contribute
    1. Bug reports
    2. Feature requests
    3. Direct pull requests
  2. Local development

How to contribute

Bug reports

bimap-rs tries to be well tested but mistakes can still slip through. If something isn't working as expected, please open an issue to let me know! It helps to include the following information:

  • bimap-rs version and enabled/disabled features
  • Rust version (rustc --version)
  • Environment (other dependencies, operating system, etc)
  • Minimal example that illustrates the issue

Feature requests

If there's a feature you'd like to see in bimap-rs, open an issue describing the feature in as much detail as you can.

Direct pull requests

For small and/or uncontroversial features and bug fixes, feel free to skip the issue process and just submit a pull request.

Local development

Building bimap-rs locally is as simple as cloning the repository.

$ # clone the repository
$ git clone https://github.com/billyrieger/bimap-rs.git
$ cd bimap-rs

$ # build the library
$ cargo build

The full test suite runs the library tests and documentation tests with different combinations of feature flags.

$ # run the test suite
$ cargo test
$ cargo test --all-features
$ cargo test --no-default-features

Don't forget to format your code! You'll need the nightly version of rustfmt.

$ # install nightly rustfmt
$ rustup toolchain install nightly
$ rustup component add --toolchain nightly rustfmt

$ # format the repository
$ cargo +nightly fmt