Building native extensions on Rust 1.75.0 fails due to this bug: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276033
Downgrading to 1.74.0 helps.
P.S. I think, this issue can be closed right away. Just wanted to warn other ruby.wasm newcomers about this potential problem 🙂.