🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
1 messages
1 total messages Started by Juan Manuel Méndez Rey Sat, 21 Nov 2026 19:50
Bug#1154718: ITP: crubit -- C++ and Rust interop bindings generators
#5387
Author: Juan Manuel Méndez Rey
Date: Sat, 21 Nov 2026 19:50
67 lines
4422 bytes
Package: wnpp
Severity: wishlist
Owner: =?utf-8?q?Juan_Manuel_M=C3=A9ndez_Rey?= <juan.mendezr@proton.me>
X-Debbugs-Cc: pkg-rust-maintainers@alioth-lists.debian.net

* Package name    : crubit
  Version         : 0.0~git20260908.a355b02
  Upstream Contact: none published. Issues and pull requests go to the GitHub
                    tracker below. The only address in the tree is
                    opensource@google.com, in a code-of-conduct template whose
                    project-steward placeholder was never filled in.
* URL             : https://github.com/google/crubit
* License         : Apache-2.0 WITH LLVM-exception. One file,
                    support/rs_std/internal/is_utf8.h, is also under the
                    Unicode licence, which upstream's own LICENSE declares for
                    it.
  Programming Lang: Rust, C++
  Section         : devel
  Description     : C++ and Rust interop bindings generators

Crubit generates a C++ header for a Rust crate, and Rust bindings for a C++
header, so the two languages can call each other without hand-written FFI. This
upload ships cc_bindings_from_rs, the Rust to C++ direction, and crubit-support,
the headers and GN files that its output links against.

Chromium builds parts of itself through Crubit. Chromium does not vendor it as
source; tools/rust/build_crubit.py builds it with cargo and ships it inside
//third_party/rust-toolchain. Debian's chromium builds against the system Rust
rather than that bundled toolchain, so it does not receive the bundled Crubit
either, and needs Crubit from the archive instead.

Crubit drives the compiler through rustc_private, which needs the rustc compiler
crates in the sysroot. Debian does not ship them, so this depends on a new
rustc-dev binary in the rustc source package, proposed at
https://salsa.debian.org/rust-team/rust/-/merge_requests/48.

Upstream publishes no releases, only a rolling tag. The version is the revision
Chromium 156.0.8078.96 pins as CRUBIT_REVISION, because Crubit must be built by
the same rustc that compiles the crates it generates bindings for. That revision
also builds against rustc 1.96, which is what rustc-web carries in trixie, so
one source can serve unstable and stable with a six-line patch. Crubit main does
not: it uses a let-chain that needs rustc 1.88.

Packaging is at https://salsa.debian.org/mendezr/crubit. It builds in a clean
unstable sbuild and in a one-CPU sbuild, and the two produce byte-identical
packages. Its autopkgtest passes. I am not a DD, so it needs a sponsor. I am
happy to keep it under my account or move it to the Rust team, whichever you
prefer; the rustc-dev half is yours either way, which is why you are copied.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads