See the comments in .cargo/config.yml
and install the required tools for your platform
You will need to install lefthook
tool and generate the Git hooks:
lefthook install
Then, you should be able to verify the installation:
Lefthook run pre-commit
the output should look like this:
✔️ fmt
✔️ test
✔️ build
✔️ clippy
First, install rustup
# Be sure to have installed build-essential, i.e. sudo apt install build-essential
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustc --version
then change to nightly
rustup toolchain install nightly
rustup default nightly
# Build local
cargo build
# Run local
cargo run
# Build container
docker build -t error-microservice .
# Run container
docker run --rm -p 8080:8080 --name server error-microservice
There will be errors for each app