• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dcdpr / jp / 26401591354
66%

Build:
DEFAULT BRANCH: main
Ran 25 May 2026 12:58PM UTC
Jobs 1
Files 380
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

25 May 2026 12:55PM UTC coverage: 65.81% (+0.02%) from 65.791%
26401591354

push

github

web-flow
fix(bookworm): Use OS cache dir and fix multi-platform sanitize (#662)

Cache downloaded crate docs in the OS-specific user cache directory
(`~/Library/Caches/bookworm/crates` on macOS, `~/.cache/bookworm/crates`
on Linux) rather than the system temp directory. This makes downloaded
documentation persist across reboots and easy to locate or wipe.

A new `default_crates_root()` function (backed by
`directories::ProjectDirs`) centralises this logic and is used by both
the `download` function and the `query` client, replacing the two
independent `env::temp_dir()` calls that were scattered across the
codebase.

The `sanitize` function was also rewritten to use structural detection
instead of matching against the crate name. Previously it kept only a
directory whose name exactly matched the crate name, which silently
deleted docs for crates with hyphenated names (e.g. `ra-ap-rustc_lexer`
ships docs under `ra_ap_rustc_lexer/`) or a custom `[lib] name = "…"`
declaration. The new logic keeps any directory that contains a top-level
`index.html` (which is what rustdoc emits for real crate docs), plus
`src/` and `implementors/` by allow-list. Target-triple wrapper
directories produced by multi-platform docsets lack a direct
`index.html` and are removed.

---------

Signed-off-by: Jean Mertz <git@jeanmertz.com>

11 of 19 new or added lines in 2 files covered. (57.89%)

31386 of 47692 relevant lines covered (65.81%)

294.69 hits per line

Uncovered Changes

Lines Coverage ∆ File
7
9.04
9.04% crates/contrib/bookworm/src/dl.rs
1
0.0
0.0% crates/contrib/bookworm/src/query/client.rs
Jobs
ID Job ID Ran Files Coverage
1 26401591354.1 25 May 2026 12:58PM UTC 380
65.81
GitHub Action Run
Source Files on build 26401591354
  • Tree
  • List 380
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26401591354
  • ac106936 on github
  • Prev Build on main (#26400468184)
  • Next Build on main (#26402944318)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc