tree: 3f1e13d02b7a5e34730ee65a2aa0b30725ba2552
  1. include/
  2. src/
  3. build.rs
  4. Cargo.toml
  5. README.md
  6. wrapper.h
contrib/rust-sdk/perfetto-sys/README.md

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:

export PERFETTO_SYS_LIB_DIR=/path/to/lib
cargo build -p perfetto-sdk-sys --no-default-features

Related crates

CrateDescription
perfetto-sdkSafe wrapper around these bindings