3 ms·
Rust does support binary libraries. You just have to interoperate with them via the system/C ABI. It doesn't support binary crates, but a crate is just a compi
by zozbot234 7y ago
Rust does support binary libraries. You just have to interoperate with them via the system/C ABI. It doesn't support binary crates, but a crate is just a compilation unit, like a file in C/C++. Do people commonly use binary .o files in C/C++ across compiler versions? That would be the equivalent of what you call "binary libraries".
- pjmlp 7y agoNaturally I was speaking about binary crates. Yes we do, all the time on Windows, as .lib, .dll or plain COM (now UWP). Dynamic libraries and COM are an OS ABI, as such compiler agnostic. And for compiler specific versions, well known libraries do bundle pre-compiled libraries to latest three versions of e.g. VC++, ICC and C++ Builder. Watching the same crates being compiled over and over across projects isnt' fun. And the workaround with a common workspace only kind of helps.
- gpderetta 7y agoRight. I would say that any large C++ project, especially one with multiple binary targets, will naturally split the code base in dynamic or static libraries.
- pjmlp 7y agoYep and in large organisations the compiler version is anyway managed by IT, thus all teams can get to share common binary libraries.