Post #2016493
2026-04-17 15:35 UTC
@katzenmann @_ Cargo would need to develop mechanism to deal with OS vendored dependencies at equal level with ones coming from crates.io. That's highly unlikely as this is a hell to bring such feature compatible with Debian, RedHat, Arch, Alpine, *BSD and wherever else packaging system is out there.
Or we need to ditch cargo for releasing for OS ecosystems relying on other build systems and invoking rustc like gcc or clang.
Replies (1)
-
@katzenmann@c3d2.social 2026-04-17 16:37
@michalfita @_ Cargo would have to do no such thing in my opinion. Please correct me it I'm wrong. Here's how I think this would work: C libraries are placed in /lib and the same could be done with rust libraries. You'd just declare `extern crate` and tell cargo something like this [dependencies] tokio = "system" and it would look in LD_LIBRARY_PATH for the shared object.