Skip to content

build(deps): bump all dependencies (noodles 0.121, MSRV 1.99) - #223

Merged
ewels merged 6 commits into
mainfrom
chore/bump-deps
Dec 4, 2026
Merged

ewels merged 6 commits into
mainfrom
chore/bump-deps

Conversation

@ewels

@ewels ewels commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

Moves every dependency to its latest release in one PR, one commit per area. It replaces the Dependabot PRs that were closed when the repo moved to Renovate (#213 noodles 0.111 → 0.120, #214 sharp, and older ones).

What changed

Area Package From To
Rust noodles 0.111.0 0.121.0
Rust ↳ noodles-cram 0.94.0 0.104.0
Rust ↳ noodles-bam 0.90.0 0.100.0
Rust ↳ noodles-sam 0.85.0 0.95.0
Rust ↳ noodles-bgzf / -csi / -fasta / -core 0.47 / 0.56 / 0.62 / 0.20 0.54 / 0.64 / 0.70 / 0.21
Rust rayon (requirement floor) 1.11 1.12
Rust crc32fast (requirement floor) 1.5.0 1.5.6
Rust lockfile (cargo update) 32 packages, e.g. lzma-rust2 0.16.5 → 0.26.0, jiff 1.0.3 → 1.1.0, anstream 1.0.0 → 1.0.1
MSRV rust-version and the CI MSRV job 1.89 1.99
Actions actions/setup-node v7.1.0 v7.2.0 (SHA-pinned)
Docs astro 7.4.13 7.4.14 (plus npm update for the lockfile)
Docker builder / runtime base rust:1-bookworm / debian:bookworm-slim rust:1-trixie / debian:trixie-slim

Every other crate in Cargo.toml was already at the latest major, and its requirement already admits the latest release. Nothing is held back.

noodles port

  • Indexed CRAM queries
    • noodles_cram::io::reader::Query is now a reader, not an iterator. IndexedReader::fetch drains it with Query::read_record_buf and moves each record out. Query::records() would also work, but it clones every record.
    • The query now filters records by reference ID itself (Filter CRAM queries by CRAI interval zaeleus/noodles#396). The local filter for multi-reference slices is gone. The existing cram_unmapped_sweep_* unit tests cover this with the multi_ref_slice.cram fixture.
    • Behaviour change in noodles: a record that has a reference ID but no alignment start is now returned for that reference. Before, the CRAM path dropped it. The BAM path already kept such records, so the two paths now agree. No fixture has such a record.
  • BAM index
    • bam::fs::index now returns bam::Index (BAI or CSI). The test-only BAI builder in src/rna/bam/writer.rs takes the BAI variant and returns an error for CSI. A unit test in io.rs now uses that builder.
  • Clippy
    • IndexedBackend's BAM variant got larger, so clippy::large_enum_variant fires. It is allowed on that enum, because there is one per open file.
  • No change was necessary for the query_unmapped EOF guard, the CRAI de-duplication or NM/MD regeneration (feat: regenerate NM/MD on CRAM input, like htslib #210). noodles still behaves the same way in those places. Only the version numbers were removed from their comments.

MSRV 1.99

noodles-cram 0.104 declares rust-version = "1.91", but it does not compile before Rust 1.99. codecs/rans_4x8/encode/order_1.rs zips over a &Box<[[u32; 256]; 256]>, and that type is not IntoIterator on older compilers. I checked every toolchain from 1.91 to 1.98 (all fail in noodles-cram) and 1.99 (passes). noodles-cram 0.103 (noodles 0.120) still builds on 1.91. If 1.99 is too new, we can pin noodles = "0.120" and set MSRV to 1.91 instead. This is probably worth reporting upstream as an MSRV bug.

Checks

  • Pure Rust
    • cargo tree -e build has no cc or cmake.
  • Output parity with main (rerun after merging fix(cram): give reader threads enough stack for CRAM 3.1 rANS-Nx16 #220 and feat: add --tools to run only selected tools #222; release builds of main at bcdbce4 and of this branch, same output path, whole output trees compared)
    • tests/data/test.bam + test.gtf: 71/71 files identical.
    • Benchmark test-data/rna/small/test.bam + chr6.gtf.gz, with the flags from modules/local/rustqc_rna.nf and conf/modules.config: 79/79 identical.
    • fix(cram): give reader threads enough stack for CRAM 3.1 rANS-Nx16 #220's CRAM 3.1 fixture tests/data/cram31/test.cram at --threads 4: 71/71 identical.
    • The same benchmark BAM as CRAM 3.0, CRAM 3.1 (default codecs, rANS-Nx16) and CRAM 3.1 archive, with the chr6 reference, at --threads 2: 79/79 identical for each. NM regeneration is active in these runs (samtools stats reports 39,821 mismatches, the same as for the BAM).
    • The four tests/data/unmapped_sweep/ CRAMs with --cram-decode-md auto|always|never: all outputs identical. same_reference_multi_slice.cram stops with "No valid data for expression histogram" on main and on this branch. With the histogram turned off, all 67 outputs are identical.
    • Only CITATIONS.md (commit hash) and qualimapReport.html (analysis timestamp) differ.
  • Plots
    • The PNG and SVG plots are byte-identical. plotters, ab_glyph and image stayed at the same versions.
  • Tooling
    • cargo fmt --check, cargo clippy -- -D warnings, cargo test --release (439 tests) and cargo +1.99 check --all-targets all pass.
    • zizmor .github/workflows reports nothing.
    • npm run build in docs/ passes, with the same two warnings that main gives.
    • The Docker image builds on trixie, and rustqc --version runs in it.
  • Pre-commit
    • pre-commit-hooks v6.0.0 and pre-commit-rust v1.0 are already the latest versions. No change.
  • Release toolchain
    • release.yml uses stable, not a pinned version. No change.

🤖 Generated with Claude Code

ewels and others added 5 commits December 4, 2026 09:40
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- noodles 0.111 -> 0.121 (noodles-cram 0.94 -> 0.104, noodles-bam 0.90 -> 0.100,
  noodles-sam 0.85 -> 0.95)
- rayon 1.12, crc32fast 1.5.6, plus `cargo update` for the lockfile

noodles-cram's indexed `Query` is now a reader rather than an iterator, so
the CRAM cursor drains it with `read_record_buf` (moving records out rather
than cloning them via `Query::records`). The query now filters on reference
ID itself (zaeleus/noodles#396), so the local multi-reference-slice filter
is gone. `bam::fs::index` returns a BAI-or-CSI `bam::Index`; the test-only
BAI builder unwraps the BAI variant.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
noodles-cram 0.104 declares rust-version 1.91 but needs 1.99 to compile:
`codecs/rans_4x8/encode/order_1.rs` zips over a `&Box<[[u32; 256]; 256]>`,
which is not `IntoIterator` before Rust 1.99. Checked with 1.91 through 1.98
(all fail) and 1.99 (passes).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ewels ewels added this to the v0.3 milestone Dec 4, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ewels
ewels merged commit b638dda into main Dec 4, 2026
7 checks passed
@ewels
ewels deleted the chore/bump-deps branch December 4, 2026 09:16
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