Compare commits

..

No commits in common. "2854dc9ab347ae500e2a2fe4b6ec6c785fb5796f" and "d176ddd27ec88b127c615ae5b662aed7de25a231" have entirely different histories.

4 changed files with 6 additions and 28 deletions

View file

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

4
Cargo.lock generated
View file

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

View file

@ -53,21 +53,6 @@ After installing Rustlings, run the following command to initialize the `rustlin
rustlings init 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: Now, go into the newly initialized directory and launch Rustlings for further instructions on getting started with the exercises:
```bash ```bash

View file

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