Cargo Features
Puffin has no features set by default.
[dependencies]
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
andzstd
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
Affects
puffin::now_ns
…
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features.