Skip to content

Fix nightly build: bump ethnum to 1.5.3 - #50

Merged
derekwisong merged 2 commits into
mainfrom
fix-nightly-ethnum-bump
Jul 20, 2026
Merged

Fix nightly build: bump ethnum to 1.5.3#50
derekwisong merged 2 commits into
mainfrom
fix-nightly-ethnum-bump

Conversation

@derekwisong

@derekwisong derekwisong commented Jul 19, 2026

Copy link
Copy Markdown
Owner

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

  • `cargo build --release` succeeds locally on `rustc 1.95.0`; `ethnum v1.5.3` compiles cleanly.

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.
@derekwisong
derekwisong merged commit 9cd8e2c into main Jul 20, 2026
4 checks passed
@derekwisong
derekwisong deleted the fix-nightly-ethnum-bump branch July 20, 2026 01:33
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