News for hackers. Stuff that matters.
Re:Will Hare replace C? Or Rust? Or Zig? Or anything else? by snovv_crash on Tuesday May 03, 2022 @09:50AM (#31248279)
No, I want a closed source Rust dependency. Otherwise it's going through a C API and I lose all of the benefits of using Rust.

Once you solve this problem, C++ & CMake are of similar complexity for C++ dependencies.

Otherwise to compare C++ toolchains, if it's distributed as a .a file, just adding -l/path/to/libclosed.a works for C++, can't get more simple than that. Or one line in the CMake file with basically the same thing.

Re:Will Hare replace C? Or Rust? Or Zig? Or anything else? by linkdd on Tuesday May 03, 2022 @10:00AM (#31248413)
A .rlib file then, that you can then add with:

  RUSTFLAGS="--extern closedlib=path/to/libclosedlib.rlib"