Low-level FFI bindings for Perfetto.
This crate provides raw Rust bindings to the Perfetto C API (perfetto_c). It is used internally by perfetto-sdk and should not normally be used directly.
| Feature | Default | Description |
|---|---|---|
vendored | yes | Compiles and statically links the bundled Perfetto C library |
bindgen | no | Regenerates Rust bindings from C headers at build time using bindgen (requires libclang) |
To link against a system-installed Perfetto C library instead of the vendored one:
export PERFETTO_SYS_LIB_DIR=/path/to/lib cargo build -p perfetto-sdk-sys --no-default-features
| Crate | Description |
|---|---|
perfetto-sdk | Safe wrapper around these bindings |