Cargo Features

Puffin has no features set by default.

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

Enables bincode

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

zstd

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.

web

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

Enables js-sys and web-time ^0.2

Affects puffin::now_ns

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

serde packing?