Toolchain Horizons: Exploring Rust Dependency-Toolchain Compatibility
Testing the top 100 crates.io crates by binary-searching Rust releases 1.0–1.94 for the oldest toolchain where `cargo check` succeeds suggests any given Rust compiler stays viable for a dependency-using project for only about two years. The cause is crates bumping `rust-version` in point releases, not language changes. Ecosystem staples like serde (1.31) and futures-core still have wide support, while syn and proc-macro2 pull many crates toward recent toolchains. The TigerBeetle Rust client dropped all dependencies, including hand-rolled replacements for futures' block_on, unfold and oneshot channels, and was backported to Rust 1.39. The shipped client targets 1.63 (about 3.5 years of support).
Related posts
- Enabling the parallel frontend on nightly
Rust Blog mediumAdept
Rust nightly now runs the compiler frontend (type checking, borrow checking) in parallel by default since nightly-2026-11-14, to surface bugs ahead of stabilization. In single-crate benchmarks with 8 threads, mean wall time dropped about 44% for check and 28% for opt builds, with some crates like nalgebra, cargo and diesel checking nearly 3x faster. Gains shrink when Cargo and LLVM already saturate the cores: an end-to-end cargo check of the whole crate graph improved only about 15%, and incremental rebuilds improved 3-5%. Nightly defaults to 2 frontend threads to limit memory growth; use -Zunstable-options --jobs-frontend=N to tune it or set N=1 to opt out, and expect nondeterministic diagnostic order and possible reproducibility bugs.
- Announcing Rust 1.100.0
Rust Blog mediumAdept
Rust 1.100.0 stabilizes the never type `!` after a decade and five failed attempts, makes `Infallible` an alias for it, and switches never-type fallback from `()` to `!` in pre-2024 editions, a rare-case breaking change that may also surface more unreachable code. The release also stabilizes the core `Allocator` trait for `Vec` and `Box`, adds `DropGuard` for closure-based cleanup with a `dismiss` escape hatch for rollback patterns, and introduces unsafe `conjure_zst` as the sanctioned way to create zero-sized types. Cargo gains an unused-dependency lint under `[lints.cargo]`, a `build-dir` layout that consistently applies the build-configuration hash to cut cache collisions, and `global-min-publish-age` dependency cooldowns that hold back freshly published crate versions to reduce supply-chain risk.
- A Year of Rust in ClickHouse
ClickHouse mediumAdept
ClickHouse added Rust to its C++ codebase as an option for new components rather than a rewrite, starting with BLAKE3, then skim for clickhouse-client history, PRQL as a switchable query dialect, and Databricks' delta-kernel-rs replacing a sketchy C++ Delta Lake implementation. The integration needed hermetic builds with vendored crates and careful C++/Rust wrappers. Panics had to be kept from crashing a multi-tenant server, and MSan required instrumenting Rust with a pinned nightly toolchain. Further friction came from cross-compilation, static OpenSSL linking, enormous Rust symbol names, library conventions for memory accounting and connection pools that don't compose with ClickHouse's, and missing build caching, while CI fuzzing caught crashes in the Rust libraries just as it does in C libraries.
- Rewriting the CLI in Rust: Was It Worth It?
Railway mediumAdeptRailway rewrote its Go/Cobra CLI in Rust for v3 because the old codebase had untyped, string-defined GraphQL queries, dynamically registered flags that forced ~120 error guards, and assumptions predating multi-service projects. The Rust version uses clap derive structs with one file per command, a commands_enum! macro to generate the subcommand enum, and schema-validated GraphQL types against the new Public API. User-facing gains include tables, fuzzy-select menus via inquire, a global --json flag and automatic non-interactive mode in CI. The hardest part turned out to be cross-platform release CI and install scripts, and the rewrite broke some users' CI along the way.
- Dependency prefixes are a supply chain risk: let's fix them
Sourcegraph mediumAdept
SemVer range prefixes like ^, ~ and wildcards in package.json act as a trust policy that lets compromised or hijacked packages flow into CI and production on the next install. The recommended controls are to commit lockfiles and install with npm ci, pnpm --frozen-lockfile or yarn --immutable, pin exact versions for high-blast-radius packages such as build tools, auth libraries and native-binding deps, set save-exact defaults, disable install scripts with an allowlist for exceptions, and run audits against the locked tree. To roll this out across hundreds of repositories, a Sourcegraph Batch Changes spec with a Node script rewrites React dependency ranges to approved exact versions and refreshes lockfiles without running scripts.