chore(rust): Update Rust Version + related changes #939

Merged
Jade merged 5 commits from Aviac/continuwuity:rust-v-1-89 into main 2025-08-21 23:57:08 +00:00
Contributor

Depends on #938

I think most of the commits should be rather self-descriptive. Feel free to just cherry-pick everything besides the fmt and clippy commits, since I don't really want to mess with other PRs, especially the v12 one.

Depends on #938 I think most of the commits should be rather self-descriptive. Feel free to just cherry-pick everything besides the `fmt` and `clippy` commits, since I don't really want to mess with other PRs, especially the v12 one.
This works without any further changes. Multiple people in the matrix
room (including myself) have reported that the built executable runs
fine with this. Nevertheless, there might be room for improvements (in
future commits)
chore(nix): exec 'use flake' with direnv on NixOS systems
Some checks failed
Checks / Prek / Pre-commit & Formatting (pull_request) Failing after 1m19s
Checks / Prek / Pre-commit & Formatting (push) Failing after 6s
Release Docker Image / define-variables (push) Successful in 3s
Documentation / Build and Deploy Documentation (push) Successful in 33s
Checks / Rust / Format (push) Successful in 49s
Checks / Rust / Clippy (push) Successful in 3m23s
Checks / Rust / Cargo Test (push) Successful in 6m11s
Release Docker Image / build-image (linux/amd64, release, linux-amd64, base) (push) Has been cancelled
Release Docker Image / build-image (linux/arm64, release, linux-arm64, base) (push) Has been cancelled
Release Docker Image / merge (push) Has been cancelled
Documentation / Build and Deploy Documentation (pull_request) Has been cancelled
256bed992e
- bump version in rust-toolchain.toml
- update sha in flake.nix
This just installs regular rustfmt, which is not needed in this project.
One could say "It doesn't hurt", but in the NixOS dev shell it actually
does since it will shadow nightly rustfmt and we don't have the
`cargo +nightly fmt` synatx on NixOS that is available on other Distros.

Also "It doesn't hurt" to delete it for non NixOS users.
I verified this by running `rustfmt --version` on my system. Note that I
don't have a system-wide install of rust and only rely on dev shells, so
this can't possibly come from somewhere else.

```
$ rustfmt --version
rustfmt 1.8.0-nightly (6677875279 2025-07-02)
```
This is required, since now we're installing `rustfmt` from the latest
state of the fenix repo. This wasn't recent enough for the latest rust
version. The input was locked at (2025-07-02). Now it's up to date.
- This mainly includes fixes for the new let-chain feature which was
  stabilized in 1.88, c.f.
  https://blog.rust-lang.org/2025/06/26/Rust-1.88.0/#let-chains
chore(rust): run cargo fmt, required after last cargo clippy --fix
Some checks failed
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Prek / Pre-commit & Formatting (pull_request) Failing after 6s
0a493715e4
Unfortunately the `cargo clippy --fix` broke the formatting here, so we
need to do another round of `cargo fmt` to get it back into shape.
Owner

I think, to avoid diff turn when we've got so many pending PRs, we can just disable that lint for now. Otherwise we're just going to have to defer this for a while

I think, to avoid diff turn when we've got so many pending PRs, we can just disable that lint for now. Otherwise we're just going to have to defer this for a while
This reverts commit 0a493715e4.
Revert "chore(rust): just run cargo clippy --fix"
Some checks failed
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Prek / Pre-commit & Formatting (pull_request) Failing after 51s
b6b90e9f0a
This reverts commit 7bbd4f1c1e.
Author
Contributor

I tidied this up by reverting the noisy commits. An issue was created to remind us (me) to do the work later. Should be much clearer now here :)

I tidied this up by reverting the noisy commits. An issue was created to remind us (me) to do the work later. Should be much clearer now here :)
@ -18,3 +18,3 @@
# For CI and editors
"rustfmt",
"clippy",
# you have to install rustfmt nightly yourself (if you're not on NixOS)
Owner

Duplicated section here?

Duplicated section here?
Jade marked this conversation as resolved
Jade force-pushed rust-v-1-89 from b6b90e9f0a to 8b35de6a43 2025-08-21 23:56:13 +00:00 Compare
Jade merged commit 8b35de6a43 into main 2025-08-21 23:57:08 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: continuwuation/continuwuity#939
No description provided.