Hacker GitHub

← All repos

google/crubit

View on GitHub ↗ ★ 1,143 C++

A bidirectional bindings generator for C++ and Rust.

14 mentions on Hacker News by 12 people: 2 stories, 12 comments · first 2022-07-19 · latest 2026-09-10

Mentions per year 14 mentions · busiest year 2022 (5)
20082026
  1. There's a huge push for this from the big companies adopting Rust. Google has been developing https://github.com/google/crubit . The older cbdingen is still usable if more limited (it's what Firefox uses for some pretty involved interop).
    comment by nicoburns · 2026-09-10 · in Rust is tier-1 language at Microsoft
  2. In the long run https://github.com/google/crubit will very likely solve this for Rust even if it's a bit specific to Google's use cases right now as per readme.
    comment by k_g_b_ · 2026-02-02 · in Swift is a more convenient Rust (2023)
  3. ….googlesource.com/chromium/src/+/main/docs/s... IIRC Crubit C++/Rust Interop is from the chrome team: https://github.com/google/crubit
    comment by wffurr · 2025-09-05 · in Fil's Unbelievable Garbage Collector
  4. I think they had another such effort for a while here: https://github.com/google/crubit
  5. What I'm really hoping is that https://github.com/google/crubit eventually gets good enough to facilitate incremental migration of brownfield C++ codebases to Rust. That seems like it would address this concern.
    comment by ameliaquining · 2024-10-25 · in Why Safety Profiles Failed
  6. …https://chromium.googlesource.com/chromium/src/+/refs/heads/... https://github.com/google/crubit
  7. …Rust-like lifetime analysis: - https://discourse.llvm.org/t/rfc-lifetime-annotations-for-c/... - https://github.com/google/crubit/tree/main/lifetime_analysis
  8. Like https://github.com/google/crubit ?
    comment by tonfa · 2023-02-28 · in Will Carbon Replace C++?
  9. …it can displace C++, but there's hope. Here's the project I'm currently most optimistic about: https://github.com/google/crubit
  10. …) and ongoing research into automating this interoperability ( https://github.com/google/autocxx , https://github.com/google/crubit ). Feels like there's enough effort in all areas. I don't understand a request that says "drop everything…
  11. …Rust can interop with C++ with high fidelity. For example https://docs.rs/moveit/latest/moveit/ and https://github.com/google/crubit/blob/main/rs_bindings_from_... provide functionality to use non-trivially relocatable C++ types from Rust.
  12. …docs (can't remember where) is a link to a Rust/C++ interop project sponsored by Google, Crubit: https://github.com/google/crubit/blob/main/docs/design.md In case it's not clear, Carbon is also at the moment a Google project. There's not…