Skip to content

fix: drop the unused aprender-db dependency that breaks docs.rs downstream - #2468

Merged
noahgift merged 1 commit into
mainfrom
fix/drop-unused-aprender-db-dep
Aug 14, 2026
Merged

fix: drop the unused aprender-db dependency that breaks docs.rs downstream#2468
noahgift merged 1 commit into
mainfrom
fix/drop-unused-aprender-db-dep

Conversation

@noahgift

Copy link
Copy Markdown
Contributor

aprender-graph and aprender-rag each declare trueno-db (package aprender-db) as a
non-optional dependency, and neither references it anywhere — not src/, not
tests/, benches/ or examples/.

That unused edge drags the whole Arrow tree into every downstream crate:

lexical-util ← lexical-core ← arrow-cast ← arrow ← aprender-db ← aprender-graph / aprender-rag

lexical-util 1.0.7 opens with #![cfg_attr(docsrs, feature(doc_auto_cfg))]. doc_auto_cfg
was removed in Rust 1.92 and merged into doc_cfg, so on docs.rs — nightly, with docsrs
defined — it fails to compile:

error[E0557]: feature has been removed
  --> lexical-util-1.0.7/src/lib.rs:83:29
   = note: removed in 1.92.0; merged into `doc_cfg`

1.0.7 is that crate's latest release. There is no version to bump to; the only fix is to leave
its dependency graph.

This has already broken a downstream crate. pmat takes aprender-graph non-optionally,
so no feature selection avoided the chain — docs.rs has never built it (3.29.0 and 3.30.0 both
failed), and it is published on crates.io with no API documentation. Two of the three paths
into arrow were these unused edges.

Both crates already gate their real storage support behind a feature (aprender-graph's
storage = ["dep:arrow", "dep:parquet"]), and both pmat and aprender-viz consume
aprender-graph with default-features = false — so the mandatory edge bought nothing the
feature did not already buy, while making Arrow impossible to opt out of.

Verification

check result
cargo check -p aprender-graph ok
cargo check -p aprender-rag ok
cargo test -p aprender-graph -p aprender-rag --lib 539 passed, 0 failed
cargo tree -p aprender-rag -i lexical-util no match
cargo tree -p aprender-graph --no-default-features -i lexical-util no match
cargo tree -p aprender-graph --no-default-features -i arrow no match

--no-default-features is exactly how both downstream consumers take it.

The other eight crates that name aprender-db genuinely use it and are untouched.

Downstream issue: paiml/paiml-mcp-agent-toolkit#988

🤖 Generated with Claude Code

…rate

aprender-graph and aprender-rag each declared

    trueno-db = { workspace = true }        # package = "aprender-db"

as a NON-OPTIONAL dependency, and neither crate references it anywhere —
not in src/, not in tests/, benches/ or examples/:

    $ grep -rl 'trueno_db\|aprender_db' crates/aprender-graph/src/ | wc -l
    0
    $ grep -rl 'trueno_db\|aprender_db' crates/aprender-rag/src/  | wc -l
    0

aprender-db exists to provide Arrow/Parquet columnar storage. Both crates
already gate their real storage support behind a feature — aprender-graph
has `storage = ["dep:arrow", "dep:parquet"]` — so the mandatory edge bought
nothing that the feature did not already buy, and it could not be switched
off by a consumer who did not want Arrow.

Consumers who did not want Arrow got it anyway, and it broke them.

    lexical-util <- lexical-core <- arrow-cast <- arrow <- aprender-db

`lexical-util 1.0.7` opens with `#![cfg_attr(docsrs, feature(doc_auto_cfg))]`.
That feature was removed in Rust 1.92 and merged into `doc_cfg`. docs.rs
builds on nightly with `docsrs` defined, so the crate stops compiling there:

    error[E0557]: feature has been removed
      --> lexical-util-1.0.7/src/lib.rs:83:29
       = note: removed in 1.92.0; merged into `doc_cfg`

1.0.7 is that crate's latest release — there is nothing to bump to. The only
way out is to not be in its dependency graph.

paiml-mcp-agent-toolkit is: it takes aprender-graph non-optionally, so no
feature selection avoided the chain, and docs.rs has never built it — 3.30.0
and 3.29.0 both failed, and the crate is published with no API docs at all.
Two of the three paths into arrow were these unused edges.

Removing them, as pmat and aprender-viz both consume the crate
(`default-features = false`):

    cargo check -p aprender-graph                                    ok
    cargo check -p aprender-rag                                      ok
    cargo test  -p aprender-graph -p aprender-rag --lib     539 passed
    cargo tree  -p aprender-rag -i lexical-util                no match
    cargo tree  -p aprender-graph --no-default-features -i lexical-util
                                                              no match
    cargo tree  -p aprender-graph --no-default-features -i arrow
                                                              no match

The other eight crates that name aprender-db do use it, and keep it.

Refs: paiml/paiml-mcp-agent-toolkit#988

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@noahgift
noahgift added this pull request to the merge queue Aug 14, 2026
Merged via the queue into main with commit 79b06ae Aug 14, 2026
20 of 23 checks passed
@noahgift
noahgift deleted the fix/drop-unused-aprender-db-dep branch August 14, 2026 12:05
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