madsmtm / objc2

Bindings to Apple's frameworks in Rust
https://docs.rs/objc2/
MIT License
280 stars 35 forks source link

FFI support for `i128`/`u128` #597

Open madsmtm opened 1 month ago

madsmtm commented 1 month ago

rustc recently implemented support for the correct ABI for i128/u128, see this blog post and https://github.com/rust-lang/rust/issues/54341, in particular by increasing the alignment.

We should reflect this as well in objc2 by implementing Encode/RefEncode for these types, at least once Rust removes them from the incompatible_c_types lint (tracking issue).