Files
poli0981andClaude Opus 5.5 622d10cf68 build: add the Cargo workspace skeleton and xtask
The M0 exit criterion is "CI green on an empty workspace" (doc 17 §3), so
the workspace exists before any product crate: a virtual manifest with
xtask as its only member, the doc 13 §2 lints, the doc 15 §2 profiles,
rust-toolchain.toml (1.100.0 with rustfmt, clippy, llvm-tools),
rustfmt.toml, clippy.toml (the doc 13 §5 bans clippy can express),
deny.toml (doc 14 §4) and a nextest `ci` profile.

xtask implements the gates CI and doc 14 §4 rely on:
- `rules`: the doc 03 §3 layer table on direct first-party dependencies,
  GPUI / network clients / `windows` confined to their crates, and
  #![forbid(unsafe_code)] at every crate root except mv-platform;
- `coverage <lcov>`: the doc 14 §2 per-crate line-coverage thresholds;
- `check`: rustfmt, clippy, cargo-deny, cargo-machete, then `rules`.
Its only dependencies are anyhow and serde_json at the doc 02 versions
(anyhow held at 1.0.104 with --precise).

deny.toml passes with cargo-deny 0.22.1 and with 0.20.2, the version the
ops security.yml runs. rustfmt's imports_granularity and group_imports
are still nightly-only on 1.100.0, so doc 13 §1 now says so instead of
setting them; doc 02 and doc 13 record the other details.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 19:48:43 +07:00
..