$ the-wire · showcase
Duration gets week/day/hour/minute constants, crates.io adds queue-age metrics
By RepoJournal · Filed · About Rust · Composed from the cited sources · methodology
Rust's standard library gains the arithmetic-free time constants people have been hand-rolling for years, while crates.io moves background-job alerting into Datadog and fixes a Windows directory rename bug.
Rollup merge of #163138 - sorairolake:feature/more-duration-constants, r=clarfonthey rust-lang/rust
`Duration::{WEEK, DAY, HOUR, MINUTE}` land as associated constants, with the exact second counts spelled out in the docs, following the same pattern as the earlier `Duration` constant additions. Tracking issue 57391 stays open, so expect the remaining units to trail in behind these.
Add background job queue-age metrics rust-lang/crates.io
The new `crates_io.background_jobs.oldest_age` gauge reports seconds since the oldest outstanding job was enqueued, grouped by job type and priority, counting running jobs and dropping to zero once a queue drains. Queue-age thresholds can now live in Datadog instead of application code, with existing service checks kept until replacement monitors are ready.
Rollup merge of #163065 - RalfJung:win-is-dir, r=ChrisDenton rust-lang/rust
A Windows directory rename path was querying `is_dir` in a place where the answer was wrong; Ralf Jung's patch removes that query, aiming to close issue 163022. It landed behind a `test-x86_64-msvc-1` try-job, which is the platform worth watching.
Rollup merge of #147790 - npmccallum:slices, r=clarfonthey rust-lang/rust
`str`, `CStr`, `ByteStr`, and `Location` get const comparison traits, part of the #143800 tracking issue. The slice comparison traits originally included in this work had already landed independently, so that commit was dropped and the rest rebased.
svelte: Add spacing utility classes for `--space-*` rust-lang/crates.io
crates.io's UnoCSS config now derives margin and padding utilities from the existing `--space-*` tokens, emitting CSS only for classes it actually detects. An explicit token list guards against misspelled class names emitting references to undefined CSS variables.
android: Fix RISC-V open flag radix rust-lang/libc
Four Android/RISC-V `fcntl` constants had the wrong radix; libc corrects them against the bionic header. Any code comparing open flags numerically on that target was reading the wrong values.
Add qt6-declarative-private-dev for crates using Qt private headers rust-lang/crates-build-env
crates-build-env adds `qt6-declarative-private-dev` so `qtbridge-runtime` 0.3 and other Qt crates using private `QtQml` headers can build docs again. The commit notes verification by building qtbridge 0.3, which previously failed with a missing `private/qqml` header.
Create crate `tauri-plugin-ad2mob` rust-lang/crates.io-index
Elsewhere on the index, the 24 hours were routine: crate creation for `tauri-plugin-ad2mob` and version updates for `rong`, `rong_url`, `rong_encoding`, and `cranpose-render-pixels`.