Skip to content

ci: pin yoke-derive to 0.8.2 for MSRV - #2317

Merged
evanlinjin merged 1 commit into
bitcoindevkit:masterfrom
evanlinjin:ci/fix-msrv-yoke-derive
Sep 18, 2026
Merged

evanlinjin merged 1 commit into
bitcoindevkit:masterfrom
evanlinjin:ci/fix-msrv-yoke-derive

Conversation

@evanlinjin

Copy link
Copy Markdown
Contributor

Description

The MSRV (1.85.0) CI job is failing. yoke-derive 0.8.3 (released 2026-09-15) calls str::from_utf8 as a method on the str type. That form isn't available on Rust 1.85.0, and the crate doesn't declare a rust-version, so cargo doesn't avoid it:

error[E0599]: no function or associated item named `from_utf8` found for type `str` in the current scope
   --> yoke-derive-0.8.3/src/lib.rs:202:32
    |
202 |         let underscores = str::from_utf8(&underscores).expect("_ is ASCII and thus UTF-8");
    |                                ^^^^^^^^^ function or associated item not found in `str`

yoke-derive gets pulled in through url -> idna -> the icu_* crates -> zerovec -> yoke. This PR pins it to 0.8.2 in ci/pin-msrv.sh. Version 0.8.2 calls core::str::from_utf8 instead, and yoke 0.8.3 accepts yoke-derive ^0.8.2.

Failing run: https://github.com/bitcoindevkit/bdk/actions/runs/35182209052/job/105076597730

Notes to the reviewers

I couldn't build with 1.85.0 locally, so the MSRV CI run on this PR is the real test. I did check that ci/pin-msrv.sh runs cleanly from a fresh lockfile and ends up with yoke-derive 0.8.2. The last green master run (2026-09-12) was before 0.8.3 came out.

Checklists

All Submissions:

🤖 Generated with Claude Code

yoke-derive 0.8.3 calls the inherent `str::from_utf8`, which is not
available on Rust 1.85.0, and it does not declare a `rust-version`.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@codecov

codecov Bot commented Sep 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.84%. Comparing base (c6a6073) to head (4dc5e5a).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2317   +/-   ##
=======================================
  Coverage   78.84%   78.84%           
=======================================
  Files          31       31           
  Lines        6060     6060           
  Branches      288      288           
=======================================
  Hits         4778     4778           
  Misses       1203     1203           
  Partials       79       79           
Flag Coverage Δ
rust 78.84% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tvpeter tvpeter left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tACK 4dc5e5a

Tested it locally and it compiles on rustc 1.85.0

@noahjoeris noahjoeris left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tACK 4dc5e5a

@evanlinjin
evanlinjin merged commit e417c43 into bitcoindevkit:master Sep 18, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Non-coding related work

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants