In which circumstances is C++ better than Rust?

This page summarizes the projects mentioned and recommended in the original post on /r/cpp

CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
InfluxDB high-performance time series database
Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.
influxdata.com
featured
  1. rust-bindgen

    THIS CRATE IS DEPRECATED, please use https://github.com/servo/rust-bindgen. (by Yamakaky)

    But Rust has their "library" to create the wrapper bindings https://crates.io/crates/bindgen and it does a more than decent job, it will struggle with some C++ things but 99% of the time it can do it alone

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. slint

    Slint is an open-source declarative GUI toolkit to build native user interfaces for Rust, C++, JavaScript, or Python apps.

    See Slint.

  4. unreal-rust

    Rust integration for Unreal Engine 5

    - Unreal https://github.com/MaikKlein/unreal-rust and if you look inside the FFI part (called workspace in Rust) at what libs it uses https://github.com/MaikKlein/unreal-rust/blob/main/unreal-ffi/Cargo.toml is cbindgen which is a FFI generator tool

  5. cxx

    Safe interop between Rust and C++

    Google has invested a lot of money also in https://cxx.rs/ so is not as a big deal at it should be using C++ with Rust

  6. Rust-CUDA

    Ecosystem of libraries and tools for writing and executing fast GPU code fully in Rust.

    - Cuda is not doing by FFI linking, instead is compiling CUDA code natively in Rust https://github.com/Rust-GPU/Rust-CUDA and even if it not complete as the C++ SDK is more than a toy

  7. rsmpi

    MPI bindings for Rust

    - OpenMPI https://github.com/rsmpi/rsmpi and if you look at dependency you will find mpi-sys (is a rust thing but it is the current FFI part) and if go and look for it https://crates.io/crates/mpi-sys/0.2.0/dependencies sure it have it, bindgen as a dependency

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Hey Rustaceans! Got a question? Ask here! (47/2022)!

    10 projects | /r/rust | 21 Nov 2022
  • Rust Bindings for the Python Interpreter

    1 project | news.ycombinator.com | 11 Jan 2025
  • Ask HN: Python in the NoGIL World

    2 projects | news.ycombinator.com | 20 Dec 2024
  • How to introduce 🦀 Rust at your company 🏭?

    2 projects | dev.to | 19 Dec 2024
  • An interpreter inside an interpreter

    2 projects | dev.to | 25 Nov 2024

Did you know that Rust is
the 5th most popular programming language
based on number of references?