2 releases
| 0.1.2 | Nov 4, 2022 |
|---|---|
| 0.1.0 | Sep 12, 2022 |
#17 in #automatic-derive
9,964 downloads per month
Used in 2 crates
21KB
355 lines
Size Of
A crate for measuring the total memory usage of an object at runtime
Features
size-of has built-in support for many 3rd party crates that can be enabled with feature flags
std: Enables support for the rust standard library (enabled by default, when disabledsize-ofis#![no_std]compatible)derive: Enables support for#[derive(SizeOf)](enabled by default)time: Enables support for thetimecratetime-std: Enables support fortime'sstdfeature
chrono: Enables support for thechronocratehashbrown: Enables support for thehashbrowncratefxhash: Enables support for thefxhashcraterust_decimal: Enables support for therust_decimalcrateordered-float: Enables support for theordered-floatcrateahash: Enables support for theahashcrateahash-std: Enables support forahash'sstdfeature
xxhash-rust: Enables support for thexxhash-rustcratexxhash-xxh32: Enables support forxxhhash-rust'sxxh32featurexxhash-xxh64: Enables support forxxhhash-rust'sxxh64featurexxhash-xxh3: Enables support forxxhhash-rust'sxxh3feature
bigdecimal: Enables support for thebigdecimalcratenum-bigint: Enables support for thenum-bigintcrate
Dependencies
~1.5MB
~39K SLoC