autocxx is an open source Rust tool and procedural macro designed to enable automatic, safe interoperability between C++ and Rust. It integrates the functionality of bindgen (for parsing and generating Rust bindings from C++ headers) with cxx (for safe and idiomatic Rust–C++ communication), automating the creation of bridges between the two languages. With autocxx, developers can include C++ headers directly in Rust source code and automatically generate bindings for the corresponding C++ classes, functions, and types. This approach greatly simplifies working with existing C++ libraries in Rust while maintaining safety and memory correctness. By reducing the amount of boilerplate and manual configuration typically needed for FFI (Foreign Function Interface) bindings, autocxx allows developers to focus on higher-level logic rather than low-level integration details.

Features

  • Automates generation of Rust bindings directly from C++ headers
  • Combines the power of bindgen with the safety guarantees of cxx
  • Supports safe and idiomatic cross-language communication
  • Reduces boilerplate and manual FFI code maintenance
  • Enables smooth integration of existing C++ libraries in Rust projects
  • Provides procedural macro syntax (include_cpp!) for intuitive usage

Project Samples

Project Activity

See All Activity >

License

Apache License V2.0, MIT License

Follow Autocxx

Autocxx Web Site

Other Useful Business Software
Custom VMs From 1 to 96 vCPUs With 99.95% Uptime Icon
Custom VMs From 1 to 96 vCPUs With 99.95% Uptime

General-purpose, compute-optimized, or GPU/TPU-accelerated. Built to your exact specs.

Live migration and automatic failover keep workloads online through maintenance. One free e2-micro VM every month.
Try Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Autocxx!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

Rust

Related Categories

Rust Programming Languages

Registered

2025-10-10