News for hackers. Stuff that matters.
Re:Bzip2 crate switches from C to 100% rust by bluGill on Tuesday June 17, 2025 @08:31PM (#44305496)
Rust cannot dynamic link to rust. It can dynamic link to C and be dynamicly linked by C - if you combine the two you can cheat but it is still C that you are dealing with not rust even if rust is on both sides.
Re:Bzip2 crate switches from C to 100% rust by mjevans on Tuesday June 17, 2025 @09:52PM (#44305948)
It might help to think of it as two IPC 'servers' written in rust that happen to have the C ABI interfaces as their communication protocol.
Re:Bzip2 crate switches from C to 100% rust by filmor on Wednesday June 18, 2025 @01:33AM (#44306916)
Rust can absolutely link to Rust libraries dynamically. There is no stable ABI, so it has to be the same compiler version, but it will still be dynamically linked.