# google/autocxx

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

Repository: https://github.com/google/autocxx
Canonical: https://ross.abutalabs.com/products/autocxx
Homepage: https://docs.rs/autocxx
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: rust, cxx, bindgen
Last push: 2026-07-30T23:25:44+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 95, release rhythm 40, longevity 100
- inputs: {"age_days": 2211, "days_push": 34, "days_rel": 548, "gap_med": 3.0, "n_releases_24m": 5}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2556, forks 176 (observed 2026-08-28T04:07:00.774770+00:00)

## What it is
Autocxx is a Rust library and code-generation tool that automatically generates safe, ergonomic bindings for calling C++ from Rust, driven directly from existing C++ headers. It works by plugging a fork of bindgen into the cxx crate, combining cxx's safety guarantees with bindgen's automation.

## Use cases
- call C++ libraries from Rust safely
- generate Rust bindings from existing C++ headers
- automate Rust/C++ FFI without hand-writing cxx bridges
- subclass C++ classes from Rust
- export Rust code to C++
- migrate a C++ codebase to Rust incrementally

## When to choose
- you have existing C++ headers and want automated, safe bindings
- you want cxx-style safety without hand-writing bridge definitions
- you're incrementally rewriting C++ projects in Rust

## When to avoid
- you're starting fresh and can use cxx or crubit directly (recommended by the project itself)
- you need actively maintained tooling - the project is seeking new maintainers
- you need C++ bindings generated from Rust rather than from C++ headers

## Facets
- artifact type: library
- maturity: maintenance
- function: developer-tools, compiler, parser
- domain: developer-tools, programming-languages, cross-platform
- platform: rust, cpp, cross-platform
- tags: ffi, cxx, bindgen, rust-cpp-interop, code-generation

## Member repositories
- google/autocxx (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:00.774770+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:23:39.817015+00:00, confidence not recorded.
  - readme: https://github.com/google/autocxx (fetched 2026-08-28T04:07:00.774770+00:00, sha 6d916b44c273)
  - homepage: https://docs.rs/autocxx (fetched 2026-08-29T10:06:24.762421+00:00, sha 6822ab99e7a7)
  - site_page: https://docs.rs/ (fetched 2026-08-29T10:06:24.765011+00:00, sha 9097c140fbda)
  - site_page: https://docs.rs/crate/autocxx/latest (fetched 2026-08-29T10:06:24.766710+00:00, sha 8db6c6b8f6fe)
  - site_page: https://docs.rs/crate/autocxx/latest/features (fetched 2026-08-29T10:06:24.768516+00:00, sha 810dbe2b07c3)
  - site_page: https://docs.rs/about (fetched 2026-08-29T10:06:24.770233+00:00, sha 29ab7986fbf5)
  - site_page: https://docs.rs/about/badges (fetched 2026-08-29T10:06:24.771875+00:00, sha 6588cac258af)
  - site_page: https://docs.rs/about/builds (fetched 2026-08-29T10:06:24.773391+00:00, sha 811231ca4680)
  - site_page: https://docs.rs/about/metadata (fetched 2026-08-29T10:06:24.775017+00:00, sha 0dcdccb2b2b2)
  - site_page: https://docs.rs/about/redirections (fetched 2026-08-29T10:06:24.776683+00:00, sha 1b1efd93105f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
