In bug 1478813 (now on inbound), I've added a new toolchain job and code
to install cbindgen via `mach bootstrap`, and it will become a hard
build dependency in the near future.
We use it on the style system to generate C++ structs / enums from the
Rust definitions (as opposed to bindgen, which we use for the
The reasons we want to do something like that are various, but basically
it will allow us to slowly get rid of a lot of unsafe (and not optimal)
Rust -> C++ conversion code, and maybe even autogenerate the style
structs to optimally pack them and save some memory without any
manually-written scary code.
Please remember to run mach bootstrap if you run into build issues
related to this in the coming days.
dev-platform mailing list