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

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

Programming Tech Brief By HackerNoon

February 8, 202610m 33s

Audio is streamed directly from the publisher (media.transistor.fm) as published in their RSS feed. Play Podcasts does not host this file. Rights-holders can request removal through the copyright & takedown page.

Show Notes

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.

Topics

rustrustlangrust-changesrust-1.77rust-1.78rust-u128rust-updaterust-incorrect-alignment