TGViewer
C++ - Reddit C++ - Reddit @r_cpp · 230 subscribers
Post #25770 5
I dislike Rust libraries with a C++ API

Cargo compilation model only really works if you are creating a monolithic shared library or an executable. If you are using a library like icu4x or libffi, you can't statically link your dependencies and even if you dynamically link your dependencies, your application size will increase by orders of magnitude because your shared libraries are all statically linked, kinda.

Monolithic shared library approach also doesn't work on all libraries, for example you can't link libraries like oneTBB and OpenMP more than once.

So overall I feel rust compilation model is a "series of hacks" and isn't worth integrating to existing C++ applications, unless you use bazel*, I'm not sure about that but people in google seem to have solved this.



https://redd.it/1wy4sbg
@r_cpp
Reddit From the cpp community on Reddit Explore this post and more from the cpp community
More from @r_cpp
  1. Oct 5, 2026Declarative GUI toolkit Slint 1.18 Released https://slint.dev/blog/slint-1.18-released htt…
  2. Oct 5, 2026CppCon https://cppcon.org/2026/ https://redd.it/1whu7nr @r_cpp
  3. Oct 5, 2026Inja is a template engine for modern C++ https://github.com/pantor/inja https://redd.it/1w…
  4. Oct 5, 2026Bringing Correctly Rounded Math to Production with LLVM-libc https://devblogs.microsoft.co…
  5. Oct 5, 2026C++ Salary expectations Mods: Please note that I am not looking for jobs or trying to brea…
  6. Oct 5, 2026Embedded C++ Just curious how useful the ability to embed C++ as a scripting language into…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →