QA: add rustfmt.toml to standardize workspace formatting #547
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!547
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/547/head"
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?
@pushkarreddyy on GitHub · 2026-11-24 04:43 UTC · original
pushkarreddyy:qa/rustfmt-config→main· +4 −1 · 1 files · 1 commits · closed without mergingMotivation
The VIctory workspace is built on the Rust 2024 edition (
edition = "2024"inCargo.toml). Without an explicitrustfmt.tomlin the repository root:rustfmtdefaults to Rust 2015/2021 when executed by IDEs, text editors (e.g. rust-analyzer formatting on save), or ad-hoccargo fmtcommands without--edition 2024.c"..."and let-chains).Solution
rustfmt.tomlto the workspace root:edition = "2024": Automatically sets the format parser to Rust 2024.newline_style = "Unix": Enforces consistent LF line endings across all platforms.use_field_init_shorthand = true: Standardizes struct field initialization.use_try_shorthand = true: Standardizes?operator usage.No game files used.
@pushkarreddyy on GitHub · 2026-11-24 04:51 UTC · original
### Technical Verification & Implementation Details
Context & Architecture
The VIctory workspace is built on Rust 2024 edition (
edition = "2024"inCargo.toml). Without an explicitrustfmt.tomlin the repository root:rustfmtdefaults to 2015/2021 when executed by IDEs (e.g. rust-analyzer formatting on save) or rawcargo fmtwithout explicit CLI flags.c"..."and let-chains).Changes & Configuration
rustfmt.toml:edition = "2024"newline_style = "Unix"use_field_init_shorthand = trueuse_try_shorthand = trueGit Log Line & Verification
ext 55aea2c QA: add rustfmt.toml to standardize workspace formatting rustfmt.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)cargo xtask policy(Rule #1 compliance, zero game assets).rustfmt --edition 2024.@pushkarreddyy on GitHub · 2026-11-24 06:24 UTC · original
### Call for Maintainer Review & Merge
Infrastructure and quality assurance improvement:
@Marvisak: Ready for review and merge when convenient!
@pushkarreddyy on GitHub · 2026-11-24 07:33 UTC · original
Thank you @mercuryVM for the thorough review and testing on Windows 11 / MSVC! Appreciate the confirmation and approval.
@Marvisak on GitHub · 2026-11-25 00:24 UTC · original
Automated triage for the maintainers. Closing because it does not change behaviour the project needs (formatting, guards for cases that cannot occur, or notes and translations that cannot be kept current).
If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.
Pull request closed