[package]
edition = "2021"
name = "size-of"
version = "0.1.5"
authors = ["Chase Wilson <me@chasewilson.dev>"]
description = "A crate for measuring the total memory usage of an object"
readme = "README.md"
keywords = [
"memory",
"heapsize",
"profiling",
"memory-usage",
"memory-profiling",
]
categories = [
"no-std",
"development-tools",
"memory-management",
"development-tools::debugging",
"development-tools::profiling",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Kixiron/size-of"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[dependencies.ahash]
version = "0.8.0"
optional = true
[dependencies.arcstr]
version = "1.1.4"
optional = true
[dependencies.bigdecimal]
version = "0.3.0"
optional = true
[dependencies.chrono]
version = "0.4.22"
optional = true
[dependencies.fxhash]
version = "0.2.1"
optional = true
[dependencies.hashbrown]
version = "0.13.2"
optional = true
[dependencies.num-bigint]
version = "0.4.3"
optional = true
default-features = false
[dependencies.ordered-float]
version = "3.0.0"
optional = true
[dependencies.rust_decimal]
version = "1.26.1"
optional = true
[dependencies.size-of-derive]
version = "0.1.2"
optional = true
[dependencies.time]
version = "0.3.15"
optional = true
default-features = false
[dependencies.xxhash-rust]
version = "0.8.6"
optional = true
[dev-dependencies.size-of-derive]
version = "0.1.2"
[dev-dependencies.trybuild]
version = "1.0.64"
[features]
ahash-std = [
"ahash",
"ahash/std",
"std",
]
default = [
"derive",
"std",
]
derive = ["size-of-derive"]
std = []
time-std = [
"time",
"time/std",
"std",
]
xxhash-xxh3 = [
"xxhash-rust",
"xxhash-rust/xxh3",
]
xxhash-xxh32 = [
"xxhash-rust",
"xxhash-rust/xxh32",
]
xxhash-xxh64 = [
"xxhash-rust",
"xxhash-rust/xxh64",
]