Run each Rust test in its own process with cargo-nextest
Switch a Rust test suite to cargo-nextest so each test runs in its own process, flaky tests can retry, and slow or hung tests are flagged and stopped.
Topic · 104 stories · page 2 of 5
104 stories tagged rust on AI Tamer, newest first.
Switch a Rust test suite to cargo-nextest so each test runs in its own process, flaky tests can retry, and slow or hung tests are flagged and stopped.
A library's error type is public API that callers match on. A binary mostly needs a clear message with context. thiserror and anyhow fit those two jobs.
Cargo's default job count is the number of logical CPUs. On a machine with many cores and several builds at once, memory becomes the limit long before CPU. Three ways to set the job count, and how to pick one.
Clippy's defaults catch a lot, and its stricter groups catch more. Which groups to enable, three individual lints worth adding, and how to set them once in Cargo.toml for the whole project.
One blocking call in a Tokio task can stall every other task on that thread. How to recognise blocking work, when spawn_blocking is the answer, and when a dedicated thread is the better one.
"It's faster now" is a claim, and one timed run can't support it. Warm-up, repeated runs, outliers, noise thresholds and what to write down, using hyperfine and Criterion.rs as worked examples.
River Inference is serving DeepSeek V4.1 Flash and GLM 5.3 Flash. Its public card is 20% under DeepSeek's off-peak rates and Z.ai's list prices. A second homepage table is much higher.
Mirai's open-source Rust engine uzu uses tree speculative decoding tuned for M5 Macs. A creator run shows 92 tokens/s on a 9B model versus 22 for llama.cpp, with caveats on quants, chips and workload.
NVIDIA's open-source Boro is a Rust CLI for AI-assisted Linux kernel review, backports and build-boot-test runs before a series goes public. Its LPC 2026 talk asks what could fold into Sashiko.
Ryan Dahl says the whole Deno team is joining Cloudflare to merge celld into workerd. The Deno runtime gets one more year of fixes, Deno Deploy shuts down in six months, and JSR keeps running.
quake-srp is a Rust port of id Software's WinQuake with unsafe code forbidden. The README says Claude Code agents wrote it and checked frames against id's C. It is not an official Quake release.
Rust can catch an unwinding plugin panic, but the host must still decide whether captured state remains valid. UnwindSafe is a warning at that boundary, not automatic rollback.
ArtCraft's PhotoCraft, LightCraft, FilmCraft and other Crafting Apps are open-source Rust reimplementations of familiar creative tools. PhotoCraft is early alpha, with installers, an MCP server and parity caveats.
Rust doctests can demonstrate forbidden API use, but compile_fail only checks that compilation fails. A misspelled import can make the lesson appear tested.
Generated Rust bindings can go stale when a build script watches too few inputs. Declare the files and external environment variables that affect generation, and keep diagnostics separate from Cargo directives.
Cargo's Rust-version-aware resolver can favor dependency releases that fit a project's minimum compiler, but its fallback policy and shared lockfile leave real compatibility checks to the build matrix.
Cargo workspace.dependencies centralizes dependency declarations, but each member opts in through its own manifest. See how that keeps an AI application's crates honest about what they use.
Checked, saturating and wrapping arithmetic encode different overflow policies. Pick one for the meaning of a counter, image dimension or protocol sequence.
Rust iterators can yield an item after None. Learn when fuse() makes exhaustion permanent, and why a temporary gap in a live stream needs a different signal.
Rust's BTreeMap can iterate directly over a chosen key interval. Its bound rules and panic cases shape safe time-window queries.
Use Rust's HashMap entry view to update per-key counters without splitting the vacant and occupied cases across separate map accesses.
Collecting an iterator of Result values into Result<Vec<T>, E> stops on the first Err. Choose that behavior for fail-fast loading, or collect errors explicitly for a full report.
An optional configuration field can be absent, valid or malformed. Option::transpose turns that three-way outcome into Result<Option<T>, E> without hiding parse errors.
Theo Browne says tsc-rs 0.1.0, a Rust port of Microsoft's Go TypeScript compiler, is an early release he has not read. The README's costs, tests, and speeds are his account.