Skip to content

feat: dynamically link gmp#3250

Merged
rakita merged 5 commits intomainfrom
feat/dylink-gmp
Dec 23, 2025
Merged

feat: dynamically link gmp#3250
rakita merged 5 commits intomainfrom
feat/dylink-gmp

Conversation

@gakonst
Copy link
Collaborator

@gakonst gakonst commented Dec 23, 2025

GMP gives us higher performance modexp which is necessary for long-tail Ethereum blocks e.g. involving Aztec or ZKSync.

Rug doesn't let us dynamically link GMP so as to make use of it w/o having to relicense Revm/Reth.

Instead, we bind to it over FFI dynamically using the use-system-libs feature of https://gitlab.com/tspiteri/gmp-mpfr-sys/-/blob/master/build.rs#L1010.

This enables using GMP in Reth

@codspeed-hq
Copy link

codspeed-hq bot commented Dec 23, 2025

CodSpeed Performance Report

Merging #3250 will not alter performance

Comparing feat/dylink-gmp (c3e2679) with main (cae8dd3)

Summary

✅ 173 untouched

@rakita
Copy link
Member

rakita commented Dec 23, 2025

ci error not related and it was already passing before

@rakita rakita merged commit 481cf70 into main Dec 23, 2025
27 of 31 checks passed
@github-actions github-actions bot mentioned this pull request Dec 22, 2025
@rakita rakita deleted the feat/dylink-gmp branch February 16, 2026 10:11
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.

3 participants