Skip to content

Commit 8d1844a

Browse files
authored
Merge pull request #3 from brson/contributing
Contributing
2 parents 2705ba8 + 74a0e02 commit 8d1844a

File tree

3 files changed

+44
-2
lines changed

3 files changed

+44
-2
lines changed

CONTRIBUTING.md

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Contributing to the Rust Cookbook
2+
3+
Have something useful to add to the Rust Cookbook? We'd love to have it!
4+
5+
This document contains information and guidelines that you should read before
6+
contributing to the project. If you think something in this document should change,
7+
feel free propose a change in a pull request.
8+
9+
## Table of Contents
10+
* [Getting Started](#getting-started)
11+
* [How to Contribute](#how-to-contribute)
12+
* [Crates](#crates)
13+
* [Tests](#tests)
14+
* [Style](#style)
15+
* [Git Commit Messages](#git-commit-messages)
16+
* [Snippet Style](#snippet-style)
17+
18+
## Getting Started
19+
TODO: Mention Trello and how to join (if we keep using it)
20+
21+
## How to Contribute
22+
TODO: Reporting bugs
23+
TODO: Project page suggestions
24+
TODO: Fixing bugs
25+
TODO: Pull requests
26+
27+
## Crates
28+
TODO: How to add new crates to project
29+
30+
## Tests
31+
TODO: Write about writing tests
32+
33+
## Style
34+
### Git Commit Messages
35+
https://chris.beams.io/posts/git-commit/
36+
TODO: Possibly take relevant parts from this post or write our own
37+
38+
### Snippet Style
39+
TODO: Talk about writing good idiomatic code
40+
TODO: Maybe provide a template?

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ makes the `?` operator work
5151

5252
For more background on error handling in Rust, read [this page of the Rust book][error-docs] and [this blog post][error-blog].
5353

54+
## Contributing
55+
If you'd like to make changes to the project, please see [this guide](CONTRIBUTING.md).
5456

5557
## License
5658

@@ -59,7 +61,7 @@ MIT/Apache-2.0
5961

6062
<!-- Links -->
6163

62-
[byteorder-badge]: https://img.shields.io/crates/v/rustc-serialize.svg
64+
[byteorder-badge]: https://img.shields.io/crates/v/rustc-serialize.svg?label=byteorder
6365
[byteorder]: https://docs.rs/byteorder
6466
[error-docs]: https://doc.rust-lang.org/book/error-handling.html
6567
[error-blog]: https://brson.github.io/2016/11/30/starting-with-error-chain

pages/byteorder.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,5 @@ fn main() { run().unwrap() }
5353

5454
<!-- Links -->
5555

56-
[byteorder-badge]: https://img.shields.io/crates/v/rustc-serialize.svg
56+
[byteorder-badge]: https://img.shields.io/crates/v/rustc-serialize.svg?label=byteorder
5757
[byteorder]: https://docs.rs/byteorder

0 commit comments

Comments
 (0)