Use a CPP library from Rust

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

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • cxx

    Safe interop between Rust and C++

  • https://cxx.rs would be your best bet. We're using it at work for 150+ libraries.

  • ritual

    Use C++ libraries from Rust

  • Just wanted to add another vote for https://github.com/rust-qt/ritual that 0OOO00000OO00O0O0OOO/ mentioned below.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • rust-bindgen

    Automatically generates Rust FFI bindings to C (and some C++) libraries.

  • bindgen

  • autocxx

    Tool for safe ergonomic Rust/C++ interop driven from existing C++ headers

  • rust-cpp

    Embed C++ directly inside your rust code!

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