Created at 2025-12-21 09:14:31 UTC
@ 2025-12-21 09:14:31 UTC
Examine the idea of authoring libraries in Rust, but exposing their APIs via C signatures. The goal being to provide type and memory safety to existing applications and services via API/ABI compatible drop-in replacements for foundational dependencies without needing to perform complete ecosystem rewrites. Apply this concept to common GNU/Linux userspace libraries, such as libc, libm, libssl/libcrypto, etc. What would the impact be? How practical of a solution is this over leaving things as they are or performing large-scale rewrites in Rust?
Thinking
The user is asking about a specific approach to software safety: writing libraries in Rust for memory and type safety, but exposing them through C-compatible ABIs so they can serve as drop-in replacements for existing C libraries in the GNU/Linux ecosystem. This is a nuanced systems programming question that requires