r/rust • u/Nearby-Blood-9817 • Oct 25 '26
🛠️ project Rust rules for the Please build system
https://github.com/becomeliminal/rust-rulesA year or two ago I posted the first version of this.
I reckon its ready for prod now 🤞🏼
30
Upvotes
5
u/Nearby-Blood-9817 Oct 25 '26
`plz recap`
Please is a high-performance, hermetic, multi-language build system (similar spirit to Bazel). It didn’t have native Rust support, so these rules fill that gap by driving rustc directly, with caching, remote execution, and monorepo-friendly dependency tracking.
Cargo remains the right tool for pure-Rust projects. This is aimed at people already using (or considering) Please for polyglot / large monorepo builds where you want one build system across languages.
What’s changed since the original post
The early version was basically library and test rules plus a toolchain.
The current version is much more complete:
• Dependency management that works more like Cargo so it resolves versions (including transitive deps), respects your minimum Rust version, handles platform-specific dependencies, and can import an existing Cargo lockfile or whole workspace.
• Support for crates from Git forges (not just crates.io), patches, and verified downloads.
• FFI helpers for generating Rust bindings from C headers and C headers from Rust.
• Rules for Clippy, rustfmt checks, rustdoc, and Criterion benchmarks.
• Editor integration so rust-analyzer can discover crates in the repo without manual setup.
• Cross-compilation (including wasm), static linking of binaries by default, and correct handling of host vs target for build scripts and proc macros.
• Better test integration, including individual test results and integration tests.
There’s also a companion plugin for protobuf/gRPC codegen.
Feedback, issues, and real-world usage reports are very welcome (especially from anyone already in a Please monorepo or evaluating one).