Skip to content
Switch branches/tags
Go to file
Cannot retrieve contributors at this time

Contributing to Exonum

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.

Quick Start

Install Rust and mandatory dependencies according to our installation guide, then you can build the project and run the tests:

git clone
cd exonum
cargo test --all

Finding something to fix or improve

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 in order to update 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 APIs should be documented, but meaningful parameter names are also helpful for better understanding.

  • Use Rust 2018 edition.

  • Prefer nested imports whenever possible.

  • Don't try to minimize imports scope (for example don't put it inside a function), place them at the beginning of the file.

  • Prefer importing a type name instead of using fully-qualified names. For example, avoid writing std::path::Path in code, instead import a type and use a shorter form:

    // Import type:
    use std::path::Path;
    // Use it:
    let path = Path::new("...");
  • Modules and imports (use) should be in the following order:

    • extern crates (if you really need them).
    • Reexporting (pub use).
    • Public modules (pub mod).
    • Imports (use):
      • Third-party libraries.
      • Standard library.
      • Internal.
    • Internal modules (mod).