Article View: linux.debian.bugs.dist
Article #5387Bug#1154718: ITP: crubit -- C++ and Rust interop bindings generators
From: Juan Manuel Méndez Rey
Date: Sat, 21 Nov 2026 19:50
Date: Sat, 21 Nov 2026 19:50
67 lines
4422 bytes
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.
Technical Details
Message-ID:
<O1ZfX-dknl-7@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.szaf.org!fu-berlin.de!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.szaf.org!fu-berlin.de!bofh.it!news.nic.it!robomod From: Juan Manuel Méndez Rey <juan.mendezr@proton.me> Newsgroups: linux.debian.bugs.dist Subject: Bug#1154718: ITP: crubit -- C++ and Rust interop bindings generators Date: Sat, 21 Nov 2026 20:50:01 +0100 Message-ID: <O1ZfX-dknl-7@gated-at.bofh.it> X-Original-To: submit@bugs.debian.org X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Sat Nov 21 19:41:08 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.451 Reply-To: Juan Manuel Méndez Rey <juan.mendezr@proton.me>, 1154718@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: pkg-rust-maintainers@alioth-lists.debian.net, wnpp@debian.org X-Debian-Pr-Message: report 1154718 X-Debian-Pr-Package: wnpp Feedback-ID: 176548819:user:proton X-Pm-Message-ID: c3dd253c3e24ebd517223c4f91ac6785c27eb1c1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2003945 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 67 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Sat, 21 Nov 2026 19:38:19 +0000 X-Original-Message-ID: <8e9215019b3cd71ff3310f7ac38692d2@proton.me>