Elektrine lite

← Feed

@katzenmann@c3d2.social

Post #2016494

2026-04-17 16:37 UTC

@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.

Replies (1)

  • @michalfita@mastodon.social 2026-04-17 16:48

    @katzenmann @_ To build and link with a library, that's not enough. The library can be linked with different options, and `pkgconfig` was developed to deal with how particular dependency shall be included in the build on particular OS. There's not Rust's equivalent of `pkgconfig` at the moment. So your "system" is part of my thinking, but not enough.

    Open ##2016495