2 releases

0.1.2 Nov 4, 2022
0.1.0 Sep 12, 2022

#17 in #automatic-derive

Download history 10814/week @ 2025-09-15 6688/week @ 2025-09-22 7282/week @ 2025-09-29 6234/week @ 2025-10-06 7691/week @ 2025-10-13 9761/week @ 2025-10-20 10397/week @ 2025-10-27 10307/week @ 2025-11-03 11775/week @ 2025-11-10 6817/week @ 2025-11-17 4161/week @ 2025-11-24 2736/week @ 2025-12-01 2445/week @ 2025-12-08 2284/week @ 2025-12-15 2171/week @ 2025-12-22 2752/week @ 2025-12-29

9,964 downloads per month
Used in 2 crates

MIT/Apache

21KB
355 lines

Crates.io docs.rs

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 disabled size-of is #![no_std] compatible)
  • derive: Enables support for #[derive(SizeOf)] (enabled by default)
  • time: Enables support for the time crate
    • time-std: Enables support for time's std feature
  • chrono: Enables support for the chrono crate
  • hashbrown: Enables support for the hashbrown crate
  • fxhash: Enables support for the fxhash crate
  • rust_decimal: Enables support for the rust_decimal crate
  • ordered-float: Enables support for the ordered-float crate
  • ahash: Enables support for the ahash crate
    • ahash-std: Enables support for ahash's std feature
  • xxhash-rust: Enables support for the xxhash-rust crate
    • xxhash-xxh32: Enables support for xxhhash-rust's xxh32 feature
    • xxhash-xxh64: Enables support for xxhhash-rust's xxh64 feature
    • xxhash-xxh3: Enables support for xxhhash-rust's xxh3 feature
  • bigdecimal: Enables support for the bigdecimal crate
  • num-bigint: Enables support for the num-bigint crate

Dependencies

~1.5MB
~39K SLoC