Bug 1797755 - Part 5: Use a single initial mark stack size regardless of whether...
[gecko.git] / third_party / rust / chardetng / CONTRIBUTING.md
blob1d41d4c60ecc5f6cc968d8155040d0085c7d2c6f
1 If you send a pull request / patch, please observe the following.
3 ## Licensing
5 Since this crate is dual-licensed,
6 [section 5 of the Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0#contributions)
7 is considered to apply in the sense of Contributions being automatically
8 under the Apache License 2.0 or MIT dual license (see the `COPYRIGHT` file).
9 That is, by the act of offering a Contribution, you place your Contribution
10 under the Apache License 2.0 or MIT dual license stated in the `COPYRIGHT`
11 file. Please do not contribute if you aren't willing or allowed to license your
12 contributions in this manner.
14 You are encouraged to dedicate test code that you contribute to the Public
15 Domain using the CC0 dedication. If you contribute test code that is not
16 dedicated to the Public Domain, please be sure not to put it in a part of
17 source code that the comments designate as being dedicated to the Public
18 Domain.
20 ## Copyright Notices
22 If you require the addition of your copyright notice, it's up to you to edit in
23 your notice as part of your Contribution. Not adding a copyright notice is
24 taken as a waiver of copyright notice.
26 ## Compatibility with Stable Rust
28 Please ensure that your Contribution compiles with the latest stable-channel
29 rustc.
31 ## rustfmt
33 The `rustfmt` version used for this code is `rustfmt-nightly`. Please either
34 use that version or avoid using `rustfmt` (so as not to reformat all the code).
36 ## Unit tests
38 Please ensure that `cargo test` succeeds.