Open tmpfs opened 5 months ago
We are interested in adding wasm32-unknown-unknown
support, but rug
library to my knowledge does not support it. I think it's the only blocker, so whenever rug becomes wasm-friendly, we'll do too. See gmp-mpfr-sys#18
However, we do not consider changing big numbers library, or adding another one behind feature flag. It seems to be a big change.
However, we do not consider changing big numbers library, or adding another one behind feature flag. It seems to be a big change.
One of the libs that could be the one here is https://crates.io/crates/malachite, https://github.com/mhogrefe/malachite, it is fully no_std
by default.
It does look nice, but rug
and this one expose different interfaces, so it'll be difficult to unify them (especially, unify them in the way so we can still benefit from optimizations in each backend).
Hi @survived,
I am looking into using this in a webassembly context, currently the build fails due to
gmp-mpfr-sys
:Has anyone tried with the
force-cross
feature forwasm32-unknown-unknown
? Is it known to work?Or would it be better to use a different GMP implementation for WASM behind a feature flag? Are you interested in supporting the
wasm32-unknown-unknown
target?