In which circumstances is C++ better than Rust?

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

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • 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

  • slint

    Slint is a declarative GUI toolkit to build native user interfaces for Rust, C++, or JavaScript apps.

  • See Slint.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • 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

  • 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

  • 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

  • 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