[Buildroot] [PATCH 0/2] Add bcachefs-tools package

Matt Staveley-Taylor matt.stav.taylor at gmail.com
Tue Apr 9 22:43:29 UTC 2024


On Mon Apr 8, 2024 at 9:54 PM BST, Thomas Petazzoni wrote:
> On Mon,  8 Apr 2024 02:38:43 +0100
> Matt Staveley-Taylor <matt.stav.taylor at gmail.com> wrote:
> > This package depends on host-clang to provide libclang, which is used to
> > generate C <-> Rust bindings.
>
> But do we need to unconditionally compile the C <-> Rust bindings?

The main binary and some of the subcommands are written in Rust, but
most of them are written in C. The Rust main calls into the C
subcommands using a tool called bindgen which generates Rust glue to
interface with the C code.

So unfortunately I don't see a good way to avoid building host-clang
here.

Matt



More information about the buildroot mailing list