Cargo Features

Puffin has no features set by default.

puffin = { version = "0.18.0", features = ["packing", "lz4", "zstd", "serialization", "web"] }
packing serialization? = lz4, serde

Enables bincode and parking_lot

Affects frame_data::FrameData

lz4 packing?

Support lz4 compression. Fast, and lightweight dependency. If both lz4 and zstd are enabled, lz4 will be used for compression.

Enables lz4_flex


Support zstd compression. Slow and big dependency, but very good compression ratio.

Enables ruzstd ^0.4.0 and zstd ^0.12.3

serialization = packing

Feature for enabling loading/saving data to a binary stream and/or file.


Enable this to be able to run puffin inside a browser when compiling to wasm

Enables js-sys and web-time

Affects puffin::now_ns

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

serde packing?

With derive, rc and default (std)