Jonas,
The Rust bindings for Leptonica appear unhappy after the leptonlib transition; perhaps they need to be regenerated? The specific complaint seems to be "test bindgen_test_layout_max_align_t ... FAILED". I am unfamiliar with Rust and unsure how to proceed.