Until your OS ships /usr/rlib with .rlib files, all the rust dependencies have to be packed into the binary.

Nice thing is, however, if you don't link to any C code the binary doesn't depend on your system libraries and survives distribution upgrades since linux doesn't break userspace and the binary talks directly to linux. [this is not true of gossip which links to C libraries]

Reply to this note

Please Login to reply.

Discussion

I got this wrong about .rlib. `cdylib` creates system libraries already (.so, .dylib, or .dll). System-shipped libraries are always the wrong version though. This is what I was talking about here: nostr:nevent1qqsdxvs2yrzumr2r48mzlk2eljmjwx39h06rzwu48x3du025du3rxycpypmhxue69uhkx6r0wf6hxtndd94k2erfd3nk2u3wvdhk6w35xs6z7qgswaehxw309ajjumn0wvhxcmmv9uqsuamnwvaz7tmwdaejumr0dshsuqznvm