Fix nightly build: bump ethnum to 1.5.3 - #50
Merged
Conversation
ethnum 1.5.1 fails to compile on current Rust stable with error[E0512] (invalid transmute of TryFromIntError) in its error.rs, which broke every nightly build since 2026-07-09. The nightly workflow uses an unpinned stable toolchain, so a Rust release started tripping the bad transmute. ethnum 1.5.3 fixes it; this is a lockfile-only, semver-compatible bump (ethnum is a transitive dep via polars).
crates/datui-pyo3 is excluded from the workspace and keeps its own Cargo.lock, so the root-level ethnum bump didn't reach it. Its lock pinned ethnum 1.5.2, which still has the E0512 transmute bug (the fix only landed in 1.5.3) — so the maturin develop step in CI kept failing with the same error. Bump the pyo3 lockfile to 1.5.3 as well.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
```
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
--> ethnum-1.5.1/src/error.rs:16:14
note: target type: `TryFromIntError` (8 bits)
error: could not compile `ethnum` (lib) due to 1 previous error
```
`ethnum` v1.5.1 (a transitive dependency via polars) contains an invalid `transmute` in its error handling. A recent Rust stable release changed the layout of `std::num::TryFromIntError`, so the transmute no longer type-checks and the crate fails to build.
Fix
`cargo update -p ethnum` → 1.5.1 → 1.5.3 (1.5.2+ fixes the transmute). Lockfile-only, semver-compatible bump; no `Cargo.toml` change. This keeps us building on current stable rather than pinning around the problem.
Verification