统一Rust格式化工具链与构建门禁

固定Rust 1.96.0与rustfmt格式配置

接入本地lint、Codex提交前检查和Jenkins构建门禁

提交server-rs全workspace一次性格式化基线

同步开发运维文档与production-ops防回退检查
This commit is contained in:
2026-07-15 21:06:05 +08:00
parent 25f6027c4a
commit 271b153308
29 changed files with 269 additions and 147 deletions
@@ -3,6 +3,21 @@
import { readFileSync } from 'node:fs';
const checks = [
{
file: 'package.json',
includes: '"check:rustfmt": "cargo fmt --all --manifest-path server-rs/Cargo.toml -- --check"',
reason: '仓库必须保留统一、只读的 Rust workspace 格式检查入口。',
},
{
file: 'jenkins/Jenkinsfile.production-api-build',
includes: 'npm run check:rustfmt',
reason: 'API 生产构建必须在编译前执行 Rust 格式检查。',
},
{
file: 'jenkins/Jenkinsfile.production-stdb-module-build',
includes: 'npm run check:rustfmt',
reason: 'Stdb module 生产构建必须在编译前执行 Rust 格式检查。',
},
{
file: 'server-rs/crates/spacetime-module/src/migration.rs',
includes: