mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1492] [Feature]: Pin Rust formatting toolchain and normalize rustfmt drift #749
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#749
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Xelvanis on GitHub (May 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1492
Originally assigned to: @SpicyMarinara on GitHub.
What problem does this solve?
cargo fmt --allcan produce unrelated Rust wrapping churn because the repo does not currently pin the Rust toolchain or rustfmt configuration. That means different contributors, agents, or CI environments may apply different rustfmt defaults across untouched Rust files.This makes feature and bugfix PRs noisier, increases merge conflict risk for Rust work, and makes review/blame less clear.
Proposed behavior
Add a dedicated contributor-workflow chore PR that:
rustfmt.tomlonly if maintainers want repo-level formatting rules beyond stable defaults.cargo fmt --allnormalization across the Rust workspace.cargo fmt --all --checkandcargo check --manifest-path src-tauri/Cargo.toml.Expected owner or impact area
Refactor branch considerations
This should be isolated as a no-behavior-change chore PR. The main risk is one-time Rust formatting churn and merge conflicts for active Rust branches, not app behavior.
Before landing, choose a Rust version that matches CI/support expectations so the toolchain pin does not accidentally introduce compiler-version drift.
If a broad formatting commit is made, consider adding or using an ignore-revs file so future blame can skip the normalization commit.
Alternatives considered
Leave the repo unpinned and ask contributors/agents to avoid broad
cargo fmt --allruns. That avoids one-time churn, but it keeps the same formatting drift risk and makes future Rust PRs more likely to include unrelated wrapping changes.Additional context
This came from local formatting workflow discussion during the issue #1457 slice. A duplicate search for open issues/PRs mentioning
rustfmt,cargo fmt,rust-toolchain, or formatting toolchain did not find an existing owner.Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (May 29, 2026):
Resolved on refactor in
a706b274. Added rust-toolchain.toml pinned to Rust 1.95.0 with rustfmt/clippy, then normalized Rust formatting with cargo fmt.