Skip to content

chore: update rd-ast/rd-source to 0.3.1 without default features - #69

Merged
eitsupi merged 1 commit into
mainfrom
chore/rd-ast-0.3.1
Aug 12, 2026
Merged

eitsupi merged 1 commit into
mainfrom
chore/rd-ast-0.3.1

Conversation

@eitsupi

@eitsupi eitsupi commented Aug 12, 2026

Copy link
Copy Markdown
Owner

Update rd-ast / rd-source from 0.1.0 to 0.3.1, and declare rd-ast with
default-features = false.

rd-ast = { version = "0.3.1", default-features = false, features = ["serde"] }
rd-source = "0.3.1"

Why

r-documentation-rs 0.3.1 reworked
how the compression codec features are forwarded to rd-rds. Before that release,
rd-ast and rd-helpdb depended on rd-rds with default features always on, so
Cargo's feature unification made it impossible for downstream crates to escape the
xz codec — which links liblzma dynamically and breaks binaries on macOS
(see eitsupi/arf#302).

rd2qmd needs only rd-ast's serde feature and uses none of rd-rds,
rd-writer, or rd-helpdb. Declaring the dependency with default-features = false
states that explicitly and keeps the codec chain permanently out of the graph,
independent of how upstream defines its defaults in the future.

Notes

  • No source changes and no snapshot changes were required. rd-ast and rd-source
    had no breaking public API changes between 0.1.0 and 0.3.1; the breaking change
    in 0.3.0 was confined to rd-writer, which this project does not depend on.
  • The 0.2.0 parser fixes (raw strings, backslash-newline escapes) did not alter any
    existing fixture output.
  • Verified that xz2, lzma-sys, rd-rds, rd-helpdb, and rd-writer are all
    absent from the dependency graph, including under --all-features.
  • The Cargo.lock diff is limited to the two upgraded packages.

🤖 Generated with Claude Code

r-documentation-rs 0.3.1 reworks how the compression codec features are
forwarded to rd-rds, so downstream crates can now opt out of the xz codec
and the dynamic liblzma link it brings with it.

rd2qmd only needs rd-ast's `serde` feature and uses none of rd-rds,
rd-writer or rd-helpdb, so declare the dependency with
default-features = false to keep the codec chain permanently out of the
graph.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@eitsupi eitsupi changed the title chore(deps): update rd-ast/rd-source to 0.3.1 without default features chore: update rd-ast/rd-source to 0.3.1 without default features Aug 12, 2026
@eitsupi
eitsupi merged commit 0b636b3 into main Aug 12, 2026
13 checks passed
@eitsupi
eitsupi deleted the chore/rd-ast-0.3.1 branch August 12, 2026 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant