tree: 69869f6edad9c8366bad3e9688258504cf239c9b [path history] [tgz]
  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.

Features

vendored (default)

Compiles the Perfetto C library from the included amalgamated source. This is the default and recommended option for most users.

bindgen

Regenerates the Rust bindings from the C headers at build time using bindgen. This requires libclang to be installed on the system.

By default, pre-generated bindings are used, which avoids the libclang dependency and speeds up build times. Enable this feature when:

  • You've modified the C headers and need updated bindings
  • You‘re targeting a platform where the pre-generated bindings don’t work
  • You want to ensure bindings match your specific libclang version
cargo build --features bindgen