#chromium #browser #api-bindings

cbf-chrome-sys

Low-level Chromium bridge bindings for CBF

7 releases

Uses new Rust 2024

new 148.0.0-alpha.2 May 10, 2026
148.0.0-alpha.1 Apr 30, 2026
146.1.0-alpha.5 Apr 18, 2026
146.1.0-alpha.2 Mar 27, 2026

#86 in #chromium


Used in 2 crates (via cbf-chrome)

BSD-3-Clause

130KB
3K SLoC

Low-level Chromium bridge bindings for CBF.

This crate owns the unsafe C ABI boundary to cbf_bridge and the runtime loading path for the bridge library used by higher Chrome-specific layers. Generated ABI mirrors live in [ffi], while bridge provides CBF-specific library discovery and process-wide bridge access.

Higher crates should keep Chromium details contained here instead of re-declaring bridge symbols or loading the bridge library themselves.


cbf-chrome-sys

cbf-chrome-sys is the low-level Rust FFI, wire-boundary, and runtime bridge-loader crate for CBF.

It defines the bridge-facing ABI used by cbf-chrome, loads libcbf_bridge at runtime, and tracks compatibility by Chromium milestone line.

The ABI mirror in ffi_data_generated.rs and the runtime bridge loader in ffi_bridge_generated.rs are both generated with bindgen. bridge.rs owns CBF-specific library path resolution and singleton management.

Regenerate both generated files with uv run tool ffi generate, and verify that the checked-in output is current with uv run tool ffi verify.

CBF is currently in alpha. ABI details, boundary behavior, and security coverage may still change.

See the repository root README.md for overall project status and runtime setup.

Dependencies

~215–580KB
~12K SLoC