Contributor setup: cargo xtask check, CONTRIBUTING.md, CLAUDE.md, .editorconfig #252
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/252"
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?
Imported from fxceless/victory-fork. Originally posted by RenzoWit35 on 2026-11-24T23:01:01Z.
What
cargo xtask check: runs what CI runs, in CI's order (asset-policy check, clippy for the plain and the diagnostics build with-D warnings, then the tests) and stops at the first failure.--no-testleaves out the tests.VICTORY_*switches off by default,shortcut:comments,// SAFETY:on new unsafe blocks) and commit style.rustfmt.toml(100 columns) and.gitattributes(LF; CRLF for.cmd/.ps1)..editorconfigis already on the policy allowlist.No code changes outside
xtask.Why
So a new contributor can get from clone to a green local check in a few commands, and run the exact CI steps before pushing.
Notes for review
x86_64-pc-windows-gnu, the pinned1.98.1resolves to the gnu toolchain; the doc showsrustup override set 1.98.1-x86_64-pc-windows-msvcfor this folder only.cargo fmt --all --checkreports about 800 diffs, as upstream), and CI does not check formatting. The docs say not to runcargo fmt --allso upstream merges stay easy. This PR reformats nothing.check()inxtask/src/main.rsduplicates the CI steps; a comment there says to keep it in step with.github/workflows/ci.yml.Testing
On Windows 11 with MSVC 14.44 and Rust 1.98.1 (msvc):
cargo xtask checkpasses end to end (policy: 172 files ok, both clippy runs clean, all workspace tests pass). The pre-commit policy hook passed on the commit.🤖 Generated with Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.