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
Gemini 3 and 200+ AI Models on One Platform Icon
Gemini 3 and 200+ AI Models on One Platform

Access Google's best plus Claude, Llama, and Gemma. Fine-tune and deploy from one console.

Build generative AI apps with Vertex AI Studio. Switch between models without switching platforms.
Start 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