From 435859728cbbc1ea0e477577d24eb75b43a19afc Mon Sep 17 00:00:00 2001 From: Paul Osborne Date: Wed, 10 Oct 2018 01:34:07 -0500 Subject: [PATCH] Add code of conduct and update readme to reference --- CODE_OF_CONDUCT.md | 64 ++++++++++++++++++++++++++++++++++++++++++++++ README.md | 44 ++++++++++++++++++------------- 2 files changed, 90 insertions(+), 18 deletions(-) create mode 100644 CODE_OF_CONDUCT.md diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 00000000..671784f6 --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,64 @@ +# The Rust Code of Conduct + +## Conduct + +**Contact**: [Embedded Linux Team][team] + +* We are committed to providing a friendly, safe and welcoming environment for all, regardless of level of experience, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, nationality, or other similar characteristic. +* On IRC, please avoid using overtly sexual nicknames or other nicknames that might detract from a friendly, safe and welcoming environment for all. +* Please be kind and courteous. There's no need to be mean or rude. +* Respect that people have differences of opinion and that every design or implementation choice carries a trade-off and numerous costs. There is seldom a right answer. +* Please keep unstructured critique to a minimum. If you have solid ideas you want to experiment with, make a fork and see how it works. +* We will exclude you from interaction if you insult, demean or harass anyone. That is not welcome behavior. We interpret the term "harassment" as including the definition in the [Citizen Code of Conduct](http://citizencodeofconduct.org/); if you have any lack of clarity about what might be included in that concept, please read their definition. In particular, we don't tolerate behavior that excludes people in socially marginalized groups. +* Private harassment is also unacceptable. No matter who you are, if you feel you have been or are being harassed or made uncomfortable by a community member, please contact one of the channel ops or any of the [Embedded Linux Team][team] immediately. Whether you're a regular contributor or a newcomer, we care about making this community a safe place for you and we've got your back. +* Likewise any spamming, trolling, flaming, baiting or other attention-stealing behavior is not welcome. + +## Moderation + +These are the policies for upholding our community's standards of conduct. + +1. Remarks that violate the Rust standards of conduct, including hateful, + hurtful, oppressive, or exclusionary remarks, are not allowed. (Cursing is + allowed, but never targeting another user, and never in a hateful manner.) +2. Remarks that moderators find inappropriate, whether listed in the code of + conduct or not, are also not allowed. +3. Moderators will first respond to such remarks with a warning. +4. If the warning is unheeded, the user will be "kicked," i.e., kicked out of + the communication channel to cool off. +5. If the user comes back and continues to make trouble, they will be banned, + i.e., indefinitely excluded. +6. Moderators may choose at their discretion to un-ban the user if it was a + first offense and they offer the offended party a genuine apology. +7. If a moderator bans someone and you think it was unjustified, please take it + up with that moderator, or with a different moderator, **in private**. + Complaints about bans in-channel are not allowed. +8. Moderators are held to a higher standard than other community members. If a + moderator creates an inappropriate situation, they should expect less leeway + than others. + +In the Rust community we strive to go the extra step to look out for each other. +Don't just aim to be technically unimpeachable, try to be your best self. In +particular, avoid flirting with offensive or sensitive issues, particularly if +they're off-topic; this all too often leads to unnecessary fights, hurt +feelings, and damaged trust; worse, it can drive people away from the community +entirely. + +And if someone takes issue with something you said or did, resist the urge to be +defensive. Just stop doing what it was they complained about and apologize. Even +if you feel you were misinterpreted or unfairly accused, chances are good there +was something you could've communicated better — remember that it's your +responsibility to make your fellow Rustaceans comfortable. Everyone wants to get +along and we are all here first and foremost because we want to talk about cool +technology. You will find that people will be eager to assume good intent and +forgive as long as you earn their trust. + +The enforcement policies listed above apply to all official embedded WG venues; +including official IRC channels (#rust-embedded); GitHub repositories under +rust-embedded; and all forums under rust-embedded.org (forum.rust-embedded.org). + +*Adapted from the [Node.js Policy on +Trolling](http://blog.izs.me/post/30036893703/policy-on-trolling) as well as the +[Contributor Covenant +v1.3.0](https://www.contributor-covenant.org/version/1/3/0/).* + +[team]: https://github.com/rust-embedded/wg#the-embedded-linux-team diff --git a/README.md b/README.md index 428cc8b6..8676f1ba 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,4 @@ -Rust I2cdev -=========== +# Rust I2cdev [![Build Status](https://travis-ci.org/rust-embedded/rust-i2cdev.svg?branch=master)](https://travis-ci.org/rust-embedded/rust-i2cdev) [![Version](https://img.shields.io/crates/v/i2cdev.svg)](https://crates.io/crates/i2cdev) @@ -20,8 +19,7 @@ Linux can be found in [linux-embedded-hal](https://crates.io/crates/linux-embedded-hal) which, at present, uses this crate as the backend for I2C. -Example/API ------------ +## Example/API The source includes an example of using the library to talk to a Wii Nunchuck (which has an i2c interface). @@ -63,8 +61,7 @@ fn i2cfun() -> Result<(), LinuxI2CError> { In addition to the Read/Write traits, the following methods are available via the [I2CDevice trait](https://rust-embedded.github.io/rust-i2cdev/i2cdev/core/trait.I2CDevice.html). -Features --------- +## Features The following features are implemented and planned for the library: @@ -79,22 +76,33 @@ The following features are implemented and planned for the library: - [ ] Add examples for non-smbus ioctl methods - [ ] Unit Testing -Cross Compiling ---------------- +## Cross Compiling Most likely, the machine you are running on is not your development machine (although it could be). In those cases, you will need to cross-compile. See https://github.com/japaric/rust-cross for pointers. -License -------- +## License -``` -Copyright (c) 2015, Paul Osborne +Licensed under either of -Licensed under the Apache License, Version 2.0 or the MIT license -, at your -option. This file may not be copied, modified, or distributed -except according to those terms. -``` +- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or + http://www.apache.org/licenses/LICENSE-2.0) +- MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT) + +at your option. + +### Contribution + +Unless you explicitly state otherwise, any contribution intentionally submitted +for inclusion in the work by you, as defined in the Apache-2.0 license, shall be +dual licensed as above, without any additional terms or conditions. + +## Code of Conduct + +Contribution to this crate is organized under the terms of the [Rust Code of +Conduct][CoC], the maintainer of this crate, the [Embedded Linux Team][team], promises +to intervene to uphold that code of conduct. + +[CoC]: CODE_OF_CONDUCT.md +[team]: https://github.com/rust-embedded/wg#the-embedded-linux-team