2 releases
0.1.2 | Nov 4, 2022 |
---|---|
0.1.0 | Sep 12, 2022 |
#6 in #memory-object
1,824 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-of
is#![no_std]
compatible)derive
: Enables support for#[derive(SizeOf)]
(enabled by default)time
: Enables support for thetime
cratetime-std
: Enables support fortime
'sstd
feature
chrono
: Enables support for thechrono
cratehashbrown
: Enables support for thehashbrown
cratefxhash
: Enables support for thefxhash
craterust_decimal
: Enables support for therust_decimal
crateordered-float
: Enables support for theordered-float
crateahash
: Enables support for theahash
crateahash-std
: Enables support forahash
'sstd
feature
xxhash-rust
: Enables support for thexxhash-rust
cratexxhash-xxh32
: Enables support forxxhhash-rust
'sxxh32
featurexxhash-xxh64
: Enables support forxxhhash-rust
'sxxh64
featurexxhash-xxh3
: Enables support forxxhhash-rust
'sxxh3
feature
bigdecimal
: Enables support for thebigdecimal
cratenum-bigint
: Enables support for thenum-bigint
crate
Dependencies
~1.5MB
~36K SLoC