Rust 1.77 and 1.78: The Changes That Happened to u128/i128 - podcast episode cover

Rust 1.77 and 1.78: The Changes That Happened to u128/i128

Feb 08, 202611 min
--:--
--:--
Download Metacast podcast app
Listen to this episode in Metacast mobile app
Don't just listen to podcasts. Learn from them with transcripts, summaries, and chapters for every episode. Skim, search, and bookmark insights. Learn more

Episode description

This story was originally published on HackerNoon at: https://hackernoon.com/rust-177-and-178-the-changes-that-happened-to-u128i128.
Rust has long had an inconsistency with C regarding the alignment of 128-bit integers on the x86-32 and x86-64 architectures.
Check more stories related to programming at: https://hackernoon.com/c/programming. You can also check exclusive content about #rust, #rustlang, #rust-changes, #rust-1.77, #rust-1.78, #rust-u128, #rust-update, #rust-incorrect-alignment, and more.

This story was written by: @Rust. Learn more about this writer by checking @Rust's about page, and for more stories, please visit hackernoon.com.

Rust has long had an inconsistency with C regarding the alignment of 128-bit integers. This problem has recently been resolved, but the fix comes with some effects that are worth being aware of. As a user, you most likely do not need to worry about these changes unless you are. Ignoring the `improper_ctypes*` lints and using these types in FFI.

For the best experience, listen in Metacast app for iOS or Android