Exonum welcomes contribution from everyone in the form of suggestions, bug reports or pull requests. This document gives some guidance if you are thinking of helping us.
Project overview and documentation can help you to better understand current state of the project.
You can always ask for help or guidance in our gitter channel. There is also a separate channel for our Russian-speaking users.
Install Rust and mandatory dependencies according to our installation guide, then you can build the project and run the tests:
git clone https://github.com/exonum/exonum
cd exonum
cargo test --all
The good first issue ❤️ label can be used to find the easy issues.
Notice that the repository uses a set of linters for static analysis:
You can set up and run these tools locally (see Travis script for the details).
Generally, we follow common best practices established in the Rust community, but we have several additional conventions:
-
Create as minimal pull request as possible: they are easier to review and integrate.
Additionally, we merge pull requests using the "squash and merge" strategy, so feel free to merge
master
branch instead of rebasing. -
Don't use
debug!
log level.It is convenient to use
debug!
when you develop some feature and are only interested in your logging output. -
Don't use
_
in public APIs, instead use full variable names and#[allow(unused_variables)]
.Public method should be documented, but meaningful parameter names are also helpful for better understanding.
-
Modules and imports (
use
) should be in the following order:extern crate
s.- Reexporting (
pub use
). - Public modules (
pub mod
). - Imports (
use
):- Third-party libraries.
- Standard library.
- Internal.
- Internal modules (
mod
).