Skip to content

Latest commit

 

History

History
76 lines (52 loc) · 1.8 KB

CONTRIBUTING.md

File metadata and controls

76 lines (52 loc) · 1.8 KB

Contributing

First of all, thank you for considering contributing to scout. This is a small project and it has a small set of features, but any contribution is always welcome.

Before contributing make sure you read the project's Code of conduct.

How to contribute

Feel free to open an issue or a pull request explaining what you want to do or what bug did you find, for example.

Some things that you can do:

If you are going to report a bug these would be some good things to put in your report:

  • Some reproduction steps
  • OS where it happend
  • How did you install the package (from source, from a package manager)
  • Rust version

Development

The code base runs against Rust stable. You'll need Rust v1.43 or higher.

To install Rust it's better if you checkout rustup.

If you make any change and you want to manually check the changes, you can use cargo run:

# use -- to pass options to the program
$ ls | cargo run -- --inline

You can run tests with the standard cargo command:

$ cargo test

Formatter

Use rustfmt as the default code formatter:

$ rustup compose add rustfmt
$ cargo fmt

Linter

Use clippy as the default linter:

$ rustup compose add clippy
$ cargo clippy -- -D warnings

If nothing happens, try to clean the previous build and run clippy again

$ cargo clean
$ cargo clippy -- -D warnings