Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kixiron/size-of
A crate for measuring the total memory usage of an object
https://github.com/kixiron/size-of
Last synced: about 12 hours ago
JSON representation
A crate for measuring the total memory usage of an object
- Host: GitHub
- URL: https://github.com/kixiron/size-of
- Owner: Kixiron
- License: apache-2.0
- Created: 2022-09-12T15:34:35.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-07-19T15:36:25.000Z (over 1 year ago)
- Last Synced: 2024-10-31T11:57:29.491Z (17 days ago)
- Language: Rust
- Size: 120 KB
- Stars: 6
- Watchers: 2
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: Changelog.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
![Crates.io](https://img.shields.io/crates/v/size-of)
![docs.rs](https://img.shields.io/docsrs/size-of)# 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`](https://docs.rs/time) crate
- `time-std`: Enables support for `time`'s `std` feature
- `chrono`: Enables support for the [`chrono`](https://docs.rs/chrono) crate
- `hashbrown`: Enables support for the [`hashbrown`](https://docs.rs/hashbrown) crate
- `fxhash`: Enables support for the [`fxhash`](https://docs.rs/fxhash/latest/fxhash) crate
- `rust_decimal`: Enables support for the [`rust_decimal`](https://docs.rs/rust_decimal) crate
- `ordered-float`: Enables support for the [`ordered-float`](https://docs.rs/ordered-float) crate
- `ahash`: Enables support for the [`ahash`](https://docs.rs/ahash) crate
- `ahash-std`: Enables support for `ahash`'s `std` feature
- `xxhash-rust`: Enables support for the [`xxhash-rust`](https://docs.rs/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`](https://docs.rs/bigdecimal) crate
- `num-bigint`: Enables support for the [`num-bigint`](https://docs.rs/num-bigint) crate