[package]
name = "puffin"
version = "0.18.1"
authors = ["Embark <opensource@embark-studios.com>"]
license = "MIT OR Apache-2.0"
description = "Simple instrumentation profiler for games"
edition = "2018"
homepage = "https://github.com/EmbarkStudios/puffin"
repository = "https://github.com/EmbarkStudios/puffin"
readme = "README.md"
categories = ["development-tools::profiling"]
keywords = ["profiler", "instrumentation", "gamedev"]
include = ["**/*.rs", "Cargo.toml", "README.md", "../puffin.jpg"]
[package.metadata.docs.rs]
all-features = true
[features]
default = []
packing = ["dep:bincode", "dep:parking_lot", "lz4", "serde"]
lz4 = ["dep:lz4_flex"]
zstd = ["dep:zstd", "dep:ruzstd"]
serialization = ["packing"]
web = ["dep:js-sys", "dep:web-time"]
[dependencies]
byteorder = { version = "1.0" }
cfg-if = "1.0"
once_cell = "1.0"
anyhow = { version = "1.0" }
bincode = { version = "1.3", optional = true }
lz4_flex = { version = "0.11", optional = true, default-features = false }
parking_lot = { version = "0.12", optional = true }
serde = { version = "1.0", features = ["derive", "rc"], optional = true }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
zstd = { version = "0.12.3", optional = true }
[target.'cfg(target_arch = "wasm32")'.dependencies]
js-sys = { version = "0.3", optional = true }
ruzstd = { version = "0.4.0", optional = true }
web-time = { version = "0.2", optional = true }
[dev-dependencies]
criterion = "0.5"
[[bench]]
name = "benchmark"
harness = false