Debian Codegraph @

CONTRIBUTING.md

raw symbols SCIP
1 # Contributing
2
3 Thank you for your interest in improving `bimap-rs`!
4
5 1. [How to contribute](#how-to-contribute)
6 1. [Bug reports](#bug-reports)
7 1. [Feature requests](#feature-requests)
8 1. [Direct pull requests](#direct-pull-requests)
9 1. [Local development](#local-development)
10
11 ## How to contribute
12
13 ### Bug reports
14
15 `bimap-rs` tries to be well tested but mistakes can still slip through. If something isn't working
16 as expected, please open an issue to let me know! It helps to include the following information:
17
18 - `bimap-rs` version and enabled/disabled features
19 - Rust version (`rustc --version`)
20 - Environment (other dependencies, operating system, etc)
21 - Minimal example that illustrates the issue
22
23 ### Feature requests
24
25 If there's a feature you'd like to see in `bimap-rs`, open an issue describing the feature in
26 as much detail as you can.
27
28 ### Direct pull requests
29
30 For small and/or uncontroversial features and bug fixes, feel free to skip the issue process and
31 just submit a pull request.
32
33 ## Local development
34
35 Building `bimap-rs` locally is as simple as cloning the repository.
36
37 ```shell
38 $ # clone the repository
39 $ git clone https://github.com/billyrieger/bimap-rs.git
40 $ cd bimap-rs
41
42 $ # build the library
43 $ cargo build
44 ```
45
46 The full test suite runs the library tests and documentation tests with different combinations of
47 feature flags.
48
49 ```shell
50 $ # run the test suite
51 $ cargo test
52 $ cargo test --all-features
53 $ cargo test --no-default-features
54 ```
55
56 Don't forget to format your code! You'll need the nightly version of `rustfmt`.
57
58 ```shell
59 $ # install nightly rustfmt
60 $ rustup toolchain install nightly
61 $ rustup component add --toolchain nightly rustfmt
62
63 $ # format the repository
64 $ cargo +nightly fmt
65 ```