1 [workspace]2 resolver = "3"3 # The engine crates are one workspace. A bundle under `plugins/<model>/<target>`4 # is its own workspace with its own lock file, so adding or updating a bundle5 # never changes this dependency graph. D19.6 members = ["crates/*/*"]7 8 [workspace.package]9 version = "1.0.0"10 edition = "2024"11 authors = ["gl0w"]12 license = "AGPL-3.0-only"13 publish = false14 rust-version = "1.99"15 16 # Exact pins only; update deliberately, never by drift.17 [workspace.dependencies]18 # Descriptor passing. Every engine crate is `unsafe_code = deny`; a19 # dependency that must cross into FFI is pinned here and must expose a safe API.20 # rustix does: `sendmsg`/`recvmsg` with owned descriptor buffers.21 rustix = { version = "=1.1.6", features = ["fs", "net", "pipe", "process", "runtime"] }22 # Signal delivery. `std` cannot install a handler, and the runtime owns the23 # handler that a `unsafe` block needs. `signal-hook` keeps the unsafe inside its24 # own crate and hands out a safe iterator; `unsafe_code = deny` stays true here.25 signal-hook = { version = "=0.3.18" }26 # Safe socket-option access for peer credentials. rustix exposes the same27 # option, but its raw syscall path returns an uncategorized errno inside a28 # rootless control container during the container proof; nix's libc path is29 # the one that worked. The crate is a safe wrapper; this tree still denies30 # unsafe.31 nix = { version = "=0.30.1", features = ["socket"] }32 33 # `unsafe_code = deny` for every engine crate. A bundle is a separate workspace34 # and declares its own lints: a kernel or FFI bundle may opt out locally with35 # `[lints.rust] unsafe_code = "allow"` and a comment that says why. No crate in36 # this workspace opts out. D19 and spec section 20.3.37 [workspace.lints.rust]38 unsafe_code = "deny"39 unused_must_use = "deny"40 41 [workspace.lints.clippy]42 all = { level = "warn", priority = -1 }43 44 [profile.release]45 lto = true46 codegen-units = 147 strip = true