[workspace] members = [ "crates/*", # The repository's scripts, built by the pinned released blaze (docs/plan/design/scripts.md). "scripts", # Release-only scripts (`toolchain_cut`, `library_archive`), kept out of gate builds. "scripts-release", ] exclude = [ # Workspace 2 (`apps/Cargo.toml`): harness, shell, UI, CAD, SQL, site, astlog, and standalone apps. "apps", "crates/bgit", "crates/blaze-bstd-convert", "crates/blaze-cad", "crates/blaze-cad-cloth", "crates/blaze-cad-field", "crates/blaze-cad-mesh", "crates/blaze-cad-out", "crates/blaze-cad-picture", "crates/blaze-cad-poly", "crates/blaze-cad-print", "crates/blaze-ctx", "crates/blaze-diag-parse", "crates/blaze-dust", "crates/blaze-ecs-wasm", "crates/blaze-fmt", "crates/blaze-git-meta", "crates/blaze-html", "crates/blaze-pbr", "crates/blaze-pg", "crates/blaze-preview", "crates/blaze-sh", "crates/blaze-shell", "crates/blaze-shell-config", "crates/blaze-site", "crates/blaze-sniff", "crates/blaze-sql", "crates/blaze-sqlite", "crates/blaze-ssh", "crates/blaze-sysmon", "crates/blaze-term-api", "crates/blaze-tiling", "crates/blaze-ui", "crates/blaze-vim", "crates/blaze-vt", "crates/gpu", "crates/gpu-macros", "crates/harness", "crates/intern", "crates/syntax", "crates/syntax-tree", # Parked (docs/plan/parked.md): kept on disk, out of the build until the new item layer # (docs/plan/design/bottom.md) gives what each waits on. The list there says why. "demo", "harness", # The standard library's own workspace (docs/toolchain.md). "library", # Patched below, without `tracing` (0001-no-tracing); each is its own workspace for its # tests, whose dev-dependencies stay out of blaze's lock (vendor/*/PATCHES.md). "vendor/quinn-proto", "vendor/ra-ap-rustc_pattern_analysis", # Patched below with a ticket's bytes; its tests and benches need dev-dependencies blaze has # no use for (vendor/rustls/SOURCE.md). "vendor/rustls", "vendor/zstd-sys", ] resolver = "2" [workspace.metadata.blaze] # `sandboxed-tests` sandboxes every member's tests on macOS, where tests are sandboxed only on # an opt-in (docs/plan/design/test.md), and on the stage 0 at `version` below, which # predates sandboxed tests by default. On Linux a blaze since notes that it does nothing there. experimental = ["sandboxed-tests"] version = "0.20261105.4" # A build may not change Cargo.lock or blaze.lock, here as under CI: `blaze lock` changes them, # saying what moved (docs/plan/design/lock-policy.md). lock = "required" # Every internal workspace member's shipped code must name no Rust `std` (blaze-cli units.rs # `std_look`): a member on `edition = "blaze-2026.11"` (its `std` is bstd), a pure proc macro, or # a LIBRARY on a Rust edition (no `[[bin]]`/`src/main.rs`, below bstd or not) whose root says # `#![no_std]` and `#![deny(blaze::std_use)]` before any item and opens no non-test # `allow(blaze::std_use)` hatch (a `std` feature's bridge keeps a crate here). Its tests may still # name Rust's std (`#[cfg(test)] extern crate std;`) until tests of the edition exist (std.md # row S5b); tools/ratchets/tests-on-std.txt counts them. Below: the shrinking ratchet of members # that meet neither; a new crate not on it is refused by `std-not-bstd`. std = "bstd" std-allow-rust = [ "blaze-alloc-count", "blaze-audit", "blaze-body-build", "blaze-body-eval", "blaze-boot", "blaze-build", "blaze-build-script", "blaze-bytes", "blaze-cas", "blaze-check", "blaze-cli", "blaze-code", "blaze-compute-quic", "blaze-consteval", "blaze-core", "blaze-data", "blaze-emit", "blaze-export", "blaze-fetch", "blaze-file-items", "blaze-fixed", "blaze-format", "blaze-format-core", "blaze-http", "blaze-ids", "blaze-inproc", "blaze-inproc-rt", "blaze-item-merkle", "blaze-keyed", "blaze-ladder", "blaze-launch", "blaze-launch-rt", "blaze-launcher", "blaze-lint-defs", "blaze-lir", "blaze-machine", "blaze-manifest", "blaze-mem", "blaze-native-macro", "blaze-new", "blaze-own", "blaze-pqc", "blaze-proc-macro", "blaze-producers", "blaze-queue", "blaze-radix", "blaze-reclaim", "blaze-remote", "blaze-report", "blaze-run", "blaze-script", "blaze-sim", "blaze-solve", "blaze-std", "blaze-surface", "blaze-text-size", "blaze-trace", "blaze-typeck", "blaze-url", "blaze-world", "parser", "paths", "scripts", "scripts-release", "test-utils", ] # Members whose source is upstream's, copied verbatim, not blaze's debt (blaze-cli units.rs # `StdMet::VendoredUpstream`): harness/toolchain_bump.py re-copies crates/rustc_lexer/src from # rust-lang/rust's `compiler/` at every toolchain bump, so a rewrite to core would be undone by # the next copy. Kept apart so `std-allow-rust` counts only blaze's own. std-vendored-upstream = [ "rustc_lexer", ] [workspace.package] version = "0.0.0" rust-version = "1.101" edition = "2024" license = "MIT OR Apache-2.0" authors = ["blaze contributors"] repository = "https://github.com/indexable-inc/blaze" homepage = "https://ix.dev/blaze" keywords = ["compiler", "jit", "hot-reload", "rust-analyzer", "cargo"] [profile.dev] debug = 1 [profile.dev.package] # These speed up local tests. rustc-hash.opt-level = 3 foldhash.opt-level = 3 blaze-hash.opt-level = 3 blaze-text-size.opt-level = 3 miniz_oxide.opt-level = 3 # fence::model's three_threads_two_slots explores ~2^24 states, too many for an unoptimized build # (the model is blaze-inproc-rt's now; blaze-inproc's own tests run the same fences). blaze-inproc.opt-level = 3 blaze-inproc-rt.opt-level = 3 # Every key's digest is hashed in tests and build dependencies: optimized, as a build dependency is not by default. blake3.opt-level = 3 blaze-blake3.opt-level = 3 # every key's digest: its tests hash every length to 4 KiB at 16 alignments # The tier 0 scripts (`blaze run -p scripts --bin `) are run, not developed: `docs check` # reads every tracked file, and unoptimized it took 26.5 s. The scripts and what they parse with # are optimized in dev builds too. scripts.opt-level = 3 scripts-release.opt-level = 3 blaze-script.opt-level = 3 memchr.opt-level = 3 # The names pipeline (lex, outline, expand, resolve) runs inside every front-end test before its own work: a # test of the new front end resolves core, alloc, std and bstd first. Unoptimized that was about two minutes a # run, each run under the one build lock (2026-11-16); these crates are run by those tests, not developed by # them. `cargo check` does no codegen, so only a test build of an edited one of these pays for it. blaze-scope.opt-level = 3 blaze-expand.opt-level = 3 blaze-file-items.opt-level = 3 blaze-surface.opt-level = 3 blaze-toolchain.opt-level = 3 blaze-lex.opt-level = 3 parser.opt-level = 3 rustc_lexer.opt-level = 3 # Hot compiler pipeline and crypto crates run inside integration tests (variadic_call, # native_so_descriptor, impls, sha512): opt-level = 2 cuts debug test runtime by ~10x while # keeping dev rebuilds fast. blaze-fixed.opt-level = 2 blaze-own.opt-level = 2 blaze-ids.opt-level = 2 blaze-lower.opt-level = 2 blaze-ty.opt-level = 2 blaze-solve.opt-level = 2 blaze-typeck.opt-level = 2 blaze-impls.opt-level = 2 blaze-body.opt-level = 2 blaze-body-lower.opt-level = 2 blaze-flow.opt-level = 2 blaze-flow-lower.opt-level = 2 blaze-borrow.opt-level = 2 blaze-consteval.opt-level = 2 blaze-build.opt-level = 2 blaze-lir.opt-level = 2 blaze-emit.opt-level = 2 blaze-ed25519.opt-level = 2 blaze-pqc.opt-level = 2 blaze-bzip2.opt-level = 2 blaze-deflate.opt-level = 2 blaze-zstd.opt-level = 2 # Generic front-end and engine crates (`blaze-ladder` monomorphizes `blaze-typeck`/`blaze-solve`/ # `blaze-flow-lower`/`blaze-build`; `blaze-cli` monomorphizes `blaze-scope::resolve_crate_verified` # over `JobTexts`/`FilePar`): without opt-level = 2 here, those generic instantiations compile at # opt-level = 0, causing 40s+ `crate scope` tasks, 120s-600s front2 tests, and 20 KiB/frame stack # overflows on Linux ARM64 debug runs. blaze-ladder.opt-level = 2 blaze-cli.opt-level = 2 blaze-tokens.opt-level = 2 blaze-memchr.opt-level = 2 blaze-format.opt-level = 2 blaze-mem.opt-level = 2 blaze-std.opt-level = 2 blaze-world.opt-level = 2 blaze-fetch.opt-level = 2 blaze-cas.opt-level = 2 blaze-engine.opt-level = 2 blaze-drive.opt-level = 2 blaze-code.opt-level = 2 blaze-export.opt-level = 2 blaze-native.opt-level = 2 blaze-manifest.opt-level = 2 blaze-unit-graph.opt-level = 2 blaze-build-script.opt-level = 2 # Launcher runtime and wire (keeps `on_signal` stack frames small on Linux AArch64's 16 KiB # SIGSTKSZ alternate stack), CAD mesh/field/math/sim (prevents `simplify_plants_are_caught` # 600s timeouts in dev), and hot base crates underneath `blaze-scope`/`blaze-ladder`/`front2_*` # (prevents 600s timeouts in `front2_*` integration tests on Linux ARM64 CI). blaze-launch.opt-level = 2 blaze-launch-rt.opt-level = 2 blaze-launcher.opt-level = 2 blaze-math.opt-level = 2 blaze-sim.opt-level = 2 blaze-columns.opt-level = 2 blaze-swiss.opt-level = 2 blaze-kit.opt-level = 2 blaze-sort.opt-level = 2 blaze-cond.opt-level = 2 blaze-format-core.opt-level = 2 blaze-id.opt-level = 2 blaze-int.opt-level = 2 blaze-core.opt-level = 2 blaze-tier.opt-level = 2 blaze-run.opt-level = 2 blaze-ask.opt-level = 2 blaze-cbor.opt-level = 2 blaze-unicode.opt-level = 2 blaze-search.opt-level = 2 blaze-radix.opt-level = 2 blaze-hashcons.opt-level = 2 blaze-bitflags.opt-level = 2 blaze-sys.opt-level = 2 [profile.release] # Emit line-table DWARF packed into a side `.dSYM`/`.dwp` bundle and strip the running binary's # symbol table: shrinks macOS `__LINKEDIT` by ~13.6 MB and cuts `LC_CODE_SIGNATURE` hashing and # page-ins at startup while preserving full symbols in `.dSYM` for `lldb`/`samply`/crash reports. debug = "line-tables-only" split-debuginfo = "packed" strip = "symbols" # Incremental: `release` is the bootstrap binary the harnesses, the runner and the self-build rebuild # after every edit, so its rebuild time is the edit loop ("make release mode at least incremental", # Andrew, 2026-11-03; a release rebuild took 5-12 min). The shipped binary is `dist`, built from # scratch with incremental off. incremental = true # bootstrap: stage 0 refuses build-override and release twins of one crate (crossbeam-channel) as # one key twice (fixed by crateclash); matching the profiles makes them one unit. Drop at the next stage. [profile.release.build-override] opt-level = 3 codegen-units = 16 debug = "line-tables-only" incremental = true # As in `profile.dev.package`: build dependencies are built at opt-level 0 otherwise. [profile.release.package] blake3.opt-level = 3 [profile.dev-rel] inherits = "release" debug = 2 # Fast inner-loop binary for iterating on blaze against real projects (decoupled from `[profile.dev]`'s # 90 per-package `opt-level = 2/3` overrides): opt-level 1, no debuginfo, 64 CGUs; reserve `--release` # for final Rule-68 smokes and benchmarks. [profile.dev-fast] inherits = "release" opt-level = 1 debug = 0 split-debuginfo = "off" strip = "none" codegen-units = 64 incremental = true debug-assertions = true overflow-checks = false [profile.dev-fast.build-override] opt-level = 0 codegen-units = 64 debug = 0 incremental = true [profile.dev-fast.package] blake3.opt-level = 3 blaze-blake3.opt-level = 3 # The binaries a release ships, built with PGO by .github/scripts/build_release.py # (fed1eb428d:docs/reports/RELEASE-BUILD.md). Thin LTO takes 4-5% off an edit's work in the daemon but # makes a rebuild of blaze after a one-line change 2.5 times longer, so `release`, which the # harnesses and CI build after every change, goes without. [profile.dist] inherits = "release" incremental = false lto = "thin" # One unit per crate, so LLVM inlines and lays out across all of it; only the release train # builds `dist`, so its longer build delays no edit. codegen-units = 1 [patch.'crates-io'] # Upstream with every `tracing` site deleted, as patch series tools/vendor/sync.py replays on each # bump (vendor//PATCHES.md, 0001-no-tracing). quinn, quinn-udp and # wtransport are out of the graph: blaze-http's h3 core drives quinn-proto itself # (docs/plan/design/http3-sans-io.md). quinn-proto = { path = "vendor/quinn-proto" } # 0.23.46 plus a TLS 1.3 client ticket as bytes, so a process resumes (and sends 0-RTT) with a # ticket an earlier one got: the remote cache's HTTP/3 reads (vendor/rustls/SOURCE.md). rustls = { path = "vendor/rustls" } [workspace.dependencies] # Workspace 1 local crates + W1-only third-party crates (byte-sorted). blake3 = { version = "1.8", default-features = false, features = ["std", "neon", "wasm32_simd"] } blaze-algebra = { path = "crates/blaze-algebra" } blaze-alloc-count = { path = "crates/blaze-alloc-count" } blaze-answer = { path = "crates/blaze-answer" } blaze-api = { path = "crates/blaze-api" } blaze-apple-sdk = { path = "crates/blaze-apple-sdk" } blaze-arrow-ipc = { path = "crates/blaze-arrow-ipc" } blaze-ask = { path = "crates/blaze-ask" } blaze-audit = { path = "crates/blaze-audit" } blaze-base-tools = { path = "crates/blaze-base-tools" } blaze-base64 = { path = "crates/blaze-base64" } blaze-bitflags = { path = "crates/blaze-bitflags" } blaze-blake3 = { path = "crates/blaze-blake3" } blaze-body = { path = "crates/blaze-body" } blaze-body-build = { path = "crates/blaze-body-build" } blaze-body-drops = { path = "crates/blaze-body-drops" } blaze-body-eval = { path = "crates/blaze-body-eval" } blaze-body-flow = { path = "crates/blaze-body-flow" } blaze-body-lower = { path = "crates/blaze-body-lower" } blaze-boot = { path = "crates/blaze-boot" } blaze-borrow = { path = "crates/blaze-borrow" } blaze-build = { path = "crates/blaze-build" } blaze-build-script = { path = "crates/blaze-build-script" } blaze-bytes = { path = "crates/blaze-bytes" } blaze-bzip2 = { path = "crates/blaze-bzip2" } blaze-c = { path = "crates/blaze-c" } blaze-c-front = { path = "crates/blaze-c-front" } blaze-cad = { path = "crates/blaze-cad" } blaze-cad-cloth = { path = "crates/blaze-cad-cloth" } blaze-cad-field = { path = "crates/blaze-cad-field" } blaze-cad-mesh = { path = "crates/blaze-cad-mesh" } blaze-cad-out = { path = "crates/blaze-cad-out" } blaze-cad-picture = { path = "crates/blaze-cad-picture" } blaze-cad-poly = { path = "crates/blaze-cad-poly" } blaze-cad-print = { path = "crates/blaze-cad-print" } blaze-cap = { path = "crates/blaze-cap" } blaze-cas = { path = "crates/blaze-cas" } blaze-causal = { path = "crates/blaze-causal" } blaze-cbor = { path = "crates/blaze-cbor" } blaze-cc = { path = "crates/blaze-cc" } blaze-cert = { path = "crates/blaze-cert" } blaze-check = { path = "crates/blaze-check" } blaze-cli = { path = "crates/blaze-cli" } blaze-cli-spec = { path = "crates/blaze-cli-spec" } blaze-code = { path = "crates/blaze-code" } blaze-code-db = { path = "crates/blaze-code-db" } blaze-codemod = { path = "crates/blaze-codemod" } blaze-columns = { path = "crates/blaze-columns" } blaze-comptime = { path = "crates/blaze-comptime" } blaze-comptime-sys = { path = "crates/blaze-comptime-sys" } blaze-compute-quic = { path = "crates/blaze-compute-quic" } blaze-cond = { path = "crates/blaze-cond" } blaze-consteval = { path = "crates/blaze-consteval" } blaze-core = { path = "crates/blaze-core" } blaze-cunit = { path = "crates/blaze-cunit" } blaze-data = { path = "crates/blaze-data" } blaze-deflate = { path = "crates/blaze-deflate" } blaze-drive = { path = "crates/blaze-drive" } blaze-ecs = { path = "crates/blaze-ecs" } blaze-ed25519 = { path = "crates/blaze-ed25519" } blaze-effects = { path = "crates/blaze-effects" } blaze-emit = { path = "crates/blaze-emit" } blaze-engine = { path = "crates/blaze-engine" } blaze-expand = { path = "crates/blaze-expand" } blaze-export = { path = "crates/blaze-export" } blaze-fetch = { path = "crates/blaze-fetch" } blaze-file-items = { path = "crates/blaze-file-items" } blaze-fixed = { path = "crates/blaze-fixed" } blaze-flow = { path = "crates/blaze-flow" } blaze-flow-lower = { path = "crates/blaze-flow-lower" } blaze-formal = { path = "crates/blaze-formal" } blaze-format = { path = "crates/blaze-format" } blaze-format-core = { path = "crates/blaze-format-core" } blaze-git = { path = "crates/blaze-git" } blaze-git-fetch = { path = "crates/blaze-git-fetch" } blaze-glob = { path = "crates/blaze-glob" } blaze-gpu-emit = { path = "crates/blaze-gpu-emit" } blaze-h1 = { path = "crates/blaze-h1" } blaze-h2 = { path = "crates/blaze-h2" } blaze-hash = { path = "crates/blaze-hash", features = ["shared"] } blaze-hashcons = { path = "crates/blaze-hashcons" } blaze-hex = { path = "crates/blaze-hex" } blaze-http = { path = "crates/blaze-http", default-features = false } blaze-id = { path = "crates/blaze-id" } blaze-ids = { path = "crates/blaze-ids" } blaze-impls = { path = "crates/blaze-impls" } blaze-inproc = { path = "crates/blaze-inproc" } blaze-inproc-rt = { path = "crates/blaze-inproc-rt" } blaze-int = { path = "crates/blaze-int" } blaze-item-merkle = { path = "crates/blaze-item-merkle" } blaze-json = { path = "crates/blaze-json" } blaze-keyed = { path = "crates/blaze-keyed" } blaze-kit = { path = "crates/blaze-kit" } blaze-ladder = { path = "crates/blaze-ladder" } blaze-launch = { path = "crates/blaze-launch" } blaze-launch-rt = { path = "crates/blaze-launch-rt" } blaze-launcher = { path = "crates/blaze-launcher" } blaze-leb128 = { path = "crates/blaze-leb128" } blaze-lex = { path = "crates/blaze-lex" } blaze-lint = { path = "crates/blaze-lint" } blaze-lint-defs = { path = "crates/blaze-lint-defs", version = "0.0.0" } blaze-lir = { path = "crates/blaze-lir" } blaze-lower = { path = "crates/blaze-lower" } blaze-machine = { path = "crates/blaze-machine" } blaze-macro-run = { path = "crates/blaze-macro-run" } blaze-manifest = { path = "crates/blaze-manifest" } blaze-math = { path = "crates/blaze-math" } blaze-mcp = { path = "crates/blaze-mcp" } blaze-mem = { path = "crates/blaze-mem" } blaze-memchr = { path = "crates/blaze-memchr" } blaze-meter = { path = "crates/blaze-meter" } blaze-native = { path = "crates/blaze-native" } blaze-native-macro = { path = "crates/blaze-native-macro" } blaze-new = { path = "crates/blaze-new" } blaze-own = { path = "crates/blaze-own" } blaze-parquet = { path = "crates/blaze-parquet" } blaze-paths = { path = "crates/blaze-paths" } blaze-pbr = { path = "crates/blaze-pbr" } blaze-phf = { path = "crates/blaze-phf", version = "0.0.0" } blaze-pins = { path = "crates/blaze-pins" } blaze-pqc = { path = "crates/blaze-pqc" } blaze-proc-macro = { path = "crates/blaze-proc-macro", default-features = false } blaze-producers = { path = "crates/blaze-producers" } blaze-project = { path = "crates/blaze-project" } blaze-project-ruby = { path = "crates/blaze-project-ruby" } blaze-project-rust = { path = "crates/blaze-project-rust" } blaze-query = { path = "crates/blaze-query" } blaze-queue = { path = "crates/blaze-queue" } blaze-radix = { path = "crates/blaze-radix" } blaze-real = { path = "crates/blaze-real" } blaze-reclaim = { path = "crates/blaze-reclaim" } blaze-record = { path = "crates/blaze-record" } blaze-remote = { path = "crates/blaze-remote" } blaze-repl = { path = "crates/blaze-repl" } blaze-report = { path = "crates/blaze-report" } blaze-rng = { path = "crates/blaze-rng" } blaze-roots = { path = "crates/blaze-roots" } blaze-run = { path = "crates/blaze-run" } blaze-rung-tiers = { path = "crates/blaze-rung-tiers" } blaze-rungs = { path = "crates/blaze-rungs" } blaze-scope = { path = "crates/blaze-scope" } blaze-screen = { path = "crates/blaze-screen" } blaze-script = { path = "crates/blaze-script" } blaze-search = { path = "crates/blaze-search" } blaze-semver = { path = "crates/blaze-semver" } blaze-sfi-verify = { path = "crates/blaze-sfi-verify" } blaze-sha1 = { path = "crates/blaze-sha1" } blaze-sha256 = { path = "crates/blaze-sha256" } blaze-sim = { path = "crates/blaze-sim" } blaze-solve = { path = "crates/blaze-solve" } blaze-sort = { path = "crates/blaze-sort" } blaze-spawn = { path = "crates/blaze-spawn" } blaze-spin = { path = "crates/blaze-spin" } blaze-state = { path = "crates/blaze-state" } blaze-std = { path = "crates/blaze-std" } blaze-store-check = { path = "crates/blaze-store-check" } blaze-surface = { path = "crates/blaze-surface" } blaze-swiss = { path = "crates/blaze-swiss" } blaze-sys = { path = "crates/blaze-sys" } blaze-tab = { path = "crates/blaze-tab" } blaze-tar = { path = "crates/blaze-tar" } blaze-text = { path = "crates/blaze-text" } blaze-text-size = { path = "crates/blaze-text-size" } blaze-tier = { path = "crates/blaze-tier" } blaze-tokens = { path = "crates/blaze-tokens" } blaze-toml = { path = "crates/blaze-toml" } blaze-toolchain = { path = "crates/blaze-toolchain" } blaze-trace = { path = "crates/blaze-trace" } blaze-ty = { path = "crates/blaze-ty" } blaze-typeck = { path = "crates/blaze-typeck" } blaze-unicode = { path = "crates/blaze-unicode" } blaze-unit-graph = { path = "crates/blaze-unit-graph" } blaze-units = { path = "crates/blaze-units" } blaze-url = { path = "crates/blaze-url" } blaze-verify = { path = "crates/blaze-verify" } blaze-world = { path = "crates/blaze-world" } blaze-ws-query = { path = "crates/blaze-ws-query" } blaze-zstd = { path = "crates/blaze-zstd" } bytes = "1.11.1" edition = { path = "crates/edition", version = "0.0.0" } foldhash = "0.2.0" libc = "0.2.191" miniz_oxide = { version = "0.9.1", default-features = false } objc2-core-foundation = "0.3.2" objc2-core-media = { version = "0.3.2", default-features = false, features = ["std", "objc2", "CMBase", "CMTime", "CMBlockBuffer", "CMFormatDescription", "CMSampleBuffer", "objc2-core-audio-types"] } objc2-core-video = { version = "0.3.2", default-features = false, features = ["std", "objc2", "CVBase", "CVBuffer", "CVImageBuffer", "CVPixelBuffer", "CVPixelBufferPool", "CVReturn"] } objc2-video-toolbox = { version = "0.3.2", default-features = false, features = ["std", "objc2", "VTBase", "VTErrors", "VTSession", "VTCompressionSession", "VTCompressionProperties", "objc2-core-media", "objc2-core-video"] } parser = { path = "crates/parser", version = "0.0.0" } paths = { path = "crates/paths", version = "0.0.0" } quinn-proto = { version = "0.11.19", default-features = false, features = ["rustls-ring"] } rcgen = { version = "0.14.10", default-features = false, features = ["ring"] } ring = "0.17" rustc_lexer = { path = "crates/rustc_lexer" } rustls = { version = "0.23", default-features = false, features = ["ring", "std", "tls12"] } scripts = { path = "scripts" } scripts-release = { path = "scripts-release" } tar = { version = "0.4.46", default-features = false } target-features = { path = "crates/target-features", version = "0.0.0" } test-utils = { path = "crates/test-utils", version = "0.0.0" } [workspace.lints.cargo] unused_dependencies = "allow" [workspace.lints.rust] # remember to update RUSTFLAGS in ci.yml if you add something here elided_lifetimes_in_paths = "warn" explicit_outlives_requirements = "warn" unsafe_op_in_unsafe_fn = "deny" unexpected_cfgs = { level = "warn", check-cfg = [ 'cfg(bootstrap)', "cfg(blaze_check)", # Set by blaze for every crate it compiles: what needs blaze's extensions (crates/blaze-std; # docs/plan/design/std.md, "Two builders"). "cfg(blaze)", ] } unused_extern_crates = "warn" unused_lifetimes = "warn" unreachable_pub = "warn" [workspace.lints.clippy] ## lint groups complexity = { level = "warn", priority = -1 } correctness = { level = "deny", priority = -1 } perf = { level = "deny", priority = -1 } restriction = { level = "allow", priority = -1 } style = { level = "warn", priority = -1 } suspicious = { level = "warn", priority = -1 } ## allow following lints too_long_first_doc_paragraph = "allow" # subjective single_match = "allow" # () makes a fine error in most cases result_unit_err = "allow" # We don't expose public APIs that matter like this len_without_is_empty = "allow" # We have macros that rely on this currently enum_variant_names = "allow" # Builder pattern disagrees new_ret_no_self = "allow" # Has a bunch of false positives useless_asref = "allow" # Has false positives assigning_clones = "allow" # Does not work with macros vec_init_then_push = "allow" # Our tests have a lot of these literal_string_with_formatting_args = "allow" # This lint has been empowered but now also triggers on cases where its invalid to do so # due to it ignoring move analysis unnecessary_map_or = "allow" ## Following lints should be tackled at some point too_many_arguments = "allow" type_complexity = "allow" wrong_self_convention = "allow" ## deny: allocation, dyn and clones are controlled mechanically ## (docs/plan.md). The lints marked `no baseline yet` were lowered from deny until their ## findings are fixed. redundant_clone = "warn" # no baseline yet; back to deny at zero findings clone_on_ref_ptr = "warn" # no baseline yet; back to deny at zero findings implicit_clone = "warn" # no baseline yet; back to deny at zero findings unnecessary_to_owned = "warn" # no baseline yet; back to deny at zero findings inefficient_to_string = "warn" # no baseline yet; back to deny at zero findings format_collect = "warn" # no baseline yet; back to deny at zero findings needless_pass_by_value = "deny" large_types_passed_by_value = "warn" # no baseline yet; back to deny at zero findings box_collection = "warn" # no baseline yet; back to deny at zero findings vec_box = "warn" # no baseline yet; back to deny at zero findings rc_buffer = "warn" # no baseline yet; back to deny at zero findings large_enum_variant = "warn" # no baseline yet; back to deny at zero findings # in `perf` (deny above): warn until they have no findings useless_vec = "warn" # no baseline yet; back to deny at zero findings useless_borrows_in_formatting = "warn" # no baseline yet; back to deny at zero findings ## deny: every unsafe block says why it is sound, one operation each ## (docs/plan/design/unsafe.md) undocumented_unsafe_blocks = "deny" multiple_unsafe_ops_per_block = "warn" # no baseline yet; back to deny at zero findings ## warn at following lints # CI raises these to deny # deny (int-1112): a `dbg!` left in prints to stderr on every run and is never what a change # means; the tree has none outside lint fixtures' strings. dbg_macro = "deny" todo = "warn" print_stdout = "warn" print_stderr = "warn" ## restriction lints for code written by agents: more typing, and each choice made where it ## is written # an `#[allow]` that no longer suppresses anything is never noticed; `#[expect]` is. These two are # the "unexplained allow" check (any `#[allow]`, an `#[expect]` with no reason), so blaze has no # lint of its own for it; `--fix` turns an outer `allow` into # `expect`. allow_attributes = "warn" allow_attributes_without_reason = "warn" # `let _ = f()` of a `#[must_use]` value throws away what it says let_underscore_must_use = "warn" # Copy-paste mistakes in one expression: `eq_op`, `ifs_same_cond` and # `self_assignment` are in `correctness`, denied above. Two branches written alike is the same # mistake, so `if_same_then_else` (in `style`) is denied too; `match_same_arms` (pedantic) warns, # since arms kept apart for their patterns' sake are common. Like the list below, `blaze check` # does not implement these yet. if_same_then_else = "deny" match_same_arms = "warn" # Listed in clippy's table but not implemented by `blaze check`, so turning them on does nothing # until they are: string_slice, missing_assert_message, let_underscore_lock, unused_async, # unused_self. wildcard_imports and shadow_unrelated are `blaze::glob_import` and # `blaze::shadow_changes_meaning` instead (in `internal`; their levels are in `lints-ratchet`). wildcard_enum_match_arm and # match_wildcard_for_single_variants are `blaze::wildcard_arm` instead, which checks the # workspace's enums only (clippy's also fires on other crates' enums such as # `std::io::ErrorKind`). str_to_string = "warn"