Elektrine lite

← Feed

@_@aviac.dev

Post #2016488

2026-04-17 08:26 UTC

@katzenmann Does rusts dynamic linking not work for this use case? https://doc.rust-lang.org/stable/reference/linkage.html?highlight=cdylib

Replies (1)

  • @katzenmann@c3d2.social 2026-04-17 08:32

    @_ Not really. There are great rust crates like wgpu or reqwest which work well because they expose a rusty API. That would be lost going through a C ABI. My vision of the future would be: - Rust getting a stable ABI (like crABI) - Popular rust libraries implementing that ABI so that they can be compiled to a shared object - Linux distros vetting those rust libraries and packaging them as they do with C and C++ libraries - Applications being able to depend on those system-installed libraries and maybe statically compiling in smaller dependencies

    Open ##2016489