News for hackers. Stuff that matters.
Re:Rust 1.100.0 by SkiFire13 on Thursday November 12, 2026 @02:15PM (#50472653)
It's not a strict prerequisite, you can just require the library being distributed to use extern "C".
Re:Rust 1.100.0 by gspr on Thursday November 12, 2026 @02:25PM (#50472790)
Well yes, but then your interface is a C ABI. That's fantastic if the side using my library is any language where C is the only common ground. When the application side is Rust though, it leaves a lot to be desired. It would be delicious to actually interface in a way that respects Rust!

Hell, even if all exposed functions and types would need to be fully monomorphized at the interface, it would be a lot nicer to pass a `&'a [i64]` rather than a `*const int64_t` together with a `size_t n` and have to marshall the slice on both sides.

Re:Rust 1.100.0 by Xirdus on Thursday November 12, 2026 @03:13PM (#50473476)
Or to put it another way, it is a strict prerequisite and Rust already meets it via extern "C".