| Crates.io | reuler |
| lib.rs | reuler |
| version | 0.2.0 |
| created_at | 2022-11-17 14:49:23.167456+00 |
| updated_at | 2022-11-17 15:27:58.636673+00 |
| description | Solutions to Project Euler in Rust |
| homepage | https://www.github.com/astariul/reuler |
| repository | |
| max_upload_size | |
| id | 717306 |
| size | 15,790 |
Solutions to Project Euler in Rust
Description • Install • Usage • Contribute
reuler is a crate that contains the solutions for the Project Euler.
Note that this project is a Work In Progress.
Install reuler by running :
cargo install reuler
You can simply run the command line followed by the ID of the problem your're trying to solve :
reuler <id>
For example, if you're trying to solve "Amicable numbers" (problem #21), just run :
reuler 21
To contribute, install the package locally, create your own branch, add your code (and tests, and documentation), and open a PR !
Ensure the code you added is properly formatted with :
cargo fmt
When you contribute, you need to make sure all the unit-tests pass. You should also add tests if necessary !
You can run the tests with :
cargo test
The documentation should be kept up-to-date. You can visualize the documentation locally by running :
cargo doc --open