Compare commits

..

1 commit

Author SHA1 Message Date
Kacper Poneta 4e3d48563a
Merge 59e8f70e55 into d176ddd27e 2024-07-12 16:31:30 +00:00
4 changed files with 6 additions and 28 deletions

View file

@ -23,9 +23,7 @@ jobs:
with:
globs: "exercises/**/*.md"
- name: Run cargo fmt
run: cargo fmt --all --check
- name: Run rustfmt on solutions
run: rustfmt --check --edition 2021 --color always solutions/**/*.rs
run: cargo fmt --all -- --check
test:
runs-on: ${{ matrix.os }}
strategy:
@ -35,7 +33,7 @@ jobs:
- uses: actions/checkout@v4
- uses: swatinem/rust-cache@v2
- name: Run cargo test
run: cargo test --workspace
run: cargo test
dev-check:
runs-on: ubuntu-latest
steps:

4
Cargo.lock generated
View file

@ -820,9 +820,9 @@ dependencies = [
[[package]]
name = "syn"
version = "2.0.71"
version = "2.0.70"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b146dcf730474b4bcd16c311627b31ede9ab149045db4d6088b3becaea046462"
checksum = "2f0209b68b3613b093e0ec905354eccaedcfe83b8cb37cbdeae64026c3064c16"
dependencies = [
"proc-macro2",
"quote",

View file

@ -53,21 +53,6 @@ After installing Rustlings, run the following command to initialize the `rustlin
rustlings init
```
<details>
<summary><strong>If the command <code>rustlings</code> can't be found…</strong> (<em>click to expand</em>)</summary>
You are probably using Linux and installed Rust using your package manager.
Cargo installs binaries to the directory `~/.cargo/bin`.
Sadly, package managers often don't add `~/.cargo/bin` to your `PATH` environment variable.
The solution is to …
- either add `~/.cargo/bin` manually to `PATH`
- or to uninstall Rust from the package manager and install it using the official way with `rustup`: https://www.rust-lang.org/tools/install
</details>
Now, go into the newly initialized directory and launch Rustlings for further instructions on getting started with the exercises:
```bash

View file

@ -3,12 +3,7 @@
# Error out if any command fails
set -e
cargo run -- dev check
typos
cargo upgrades
# Similar to CI
cargo clippy -- --deny warnings
cargo fmt --all --check
rustfmt --check --edition 2021 solutions/**/*.rs
cargo outdated -w --exit-code 1
cargo test --workspace --all-targets
cargo run -- dev check --require-solutions