Elektrine lite

← Feed

@thingsiplay@lemmy.ml

2026-10-26 10:46 UTC

But that was not MY point at all. My point is to avoid Cargo, the registry and external dependencies from cratesio. The makefile just uses standard Linux make command. It was just an example to automate this (it could have been a simple Bash script too), but the point is it can be done manually. In this example and even in more useful ones, it can be just a simple rustc invocation.

Replies (1)

  • @Ferk@lemmy.ml 2026-10-26 15:28

    I think one of the reasons why this is not done is because Rust deliberately pushes away from relying on precompiled binaries. Unlike traditional C compilers, for the Rust compiler trying to keep ABI compatibility is a non-goal… the Rust compiler retains the freedom to aggressively optimize how data is laid out in memory and how functions are called. So the binaries generated by one version of the compiler might not work in the next version… making it much harder to work the way we work with C. This means managing dependencies between rust libraries is a lot more involved… since you are essentially recompiling the library along with your project, so you need a way to download, not just the library headers as you would with C, but its entire sourcecode.

    Open ##5256784