Skip to content

exercism/rust-analyzer

Repository files navigation

rust-analyzer

Not to be confused with the rust-analyzer of the Rust project!

rust-analyzer is a little wrapper around clippy that massages its output to adhere to Exercism's analyzer interface. It is used to provide clippy's feedback to submissions on Exercism's Rust track. Please find general documentation about Exercism's language analyzers here.

Usage

To run the utility using Cargo execute the following command:

cargo run -- <slug> <solution_dir> <output_dir>

In the context of the automatic mentoring the utility is invoked inside the Docker container via the bin/run.sh script.

Building

You should have the latest stable version of Rust installed on you machine. Then from the project root run:

cargo build

Testing

The main tests are run in docker, use the following script:

./bin/run-tests-in-docker.sh

For unit tests:

cargo test