Back to Perfetto

perfetto-sdk-sys

contrib/rust-sdk/perfetto-sys/README.md

56.0925 B
Original Source

perfetto-sdk-sys

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.

Crate features

FeatureDefaultDescription
vendoredyesCompiles and statically links the bundled Perfetto C library
bindgennoRegenerates Rust bindings from C headers at build time using bindgen (requires libclang)

Linking against an external library

To link against a system-installed Perfetto C library instead of the vendored one:

bash
export PERFETTO_SYS_LIB_DIR=/path/to/lib
cargo build -p perfetto-sdk-sys --no-default-features
CrateDescription
perfetto-sdkSafe wrapper around these bindings