get-size2
Determine the size in bytes an object occupies inside RAM.
0.11.0
5.9M downloads/mo
#4163 most downloaded on crates.io
bircni/get-size2
What this package is like to depend on
Last release 20 days ago
03 Aug 2026
Ships fairly regularly
a new release about every 3 weeks
Most releases are documented
notes for 22 of 26 stable releases
2 versions withdrawn
withdrawn after publishing
2 years old
29 releases · first in 2024
13 releases in the last 12 months
see the full history below
Release timeline
29 releases · Sep 2024 to Aug 2026Releases
latest 29-
0.11.003 Aug 2026Release notes
Open source →What's Changed
Documentation
- Overhaul the crate and derive documentation - (f03e05c) - bircni
Features
- [breaking] Add
no_stdsupport (#57) - (dd08267) - bircni - Honor field attributes on enum variant fields - (19c495e) - bircni
- [breaking] Implement
GetSizefor references to unsized targets - (135967f) - bircni
Full Changelog: 0.10.3...0.11.0
Release notes
Open source → -
0.10.320 Jul 2026Release notes
Open source →What's Changed
Bug Fixes
- Gate 64-bit atomic impls behind target_has_atomic (#54) - (19e8784) - bircni
- Use pointer-width-independent sizes in indexmap/ordermap tests (#56) - (a9982c6) - bircni
Features
- Add portable-atomic feature with GetSize impls for portable_atomic types - (695ade6) - bircni
Tests
- Register test_orx_concurrent_vec as a test case - (ccf2051) - bircni
Ci
- Build and test across a 64-bit and 32-bit target matrix - (58d7d39) - bircni
Full Changelog: 0.10.2...0.10.3
Release notes
Open source →Bug Fixes
- Gate 64-bit atomic impls behind target_has_atomic (#54) - (19e8784) - bircni
- Use pointer-width-independent sizes in indexmap/ordermap tests (#56) - (a9982c6) - bircni
Features
- Add portable-atomic feature with GetSize impls for portable_atomic types - (695ade6) - bircni
Tests
- Register test_orx_concurrent_vec as a test case - (ccf2051) - bircni
Ci
- Build and test across a 64-bit and 32-bit target matrix - (58d7d39) - bircni
-
0.10.215 Jul 2026Release notes
Open source →What's Changed
Bug Fixes
New Contributors
- @charliermarsh made their first contribution in #53
Full Changelog: 0.10.1...0.10.2
-
0.10.111 Jun 2026Release notes
Open source →What's Changed
Bug Fixes
- Track shared DST allocations (#52) - (9141b6a) #52 - @MichaReiser
Miscellaneous Chores
- Adjust versioning - (76ac0ca) - Nicolas
Full Changelog: 0.10.0...0.10.1
Release notes
Open source →Bug Fixes
- Track shared DST allocations (#52) - (9141b6a) - Micha Reiser
Miscellaneous Chores
- Adjust versioning - (76ac0ca) - Nicolas
-
0.10.005 Jun 2026Release notes
Open source →What's Changed
- feat: Add orx-concurrent-vec feature with GetSize impl for ConcurrentVec by @AlJohri in #50
- feat: Add roaring feature with GetSize impls for RoaringBitmap and RoaringTreemap by @AlJohri in #49
Full Changelog: 0.9.0...0.10.0
-
0.9.015 May 2026Release notes
Open source →Features
- Add parking_lot feature with GetSize + GetSizeTracker impls (#46) - (18b15c8) - Al Johri
- Add half feature with GetSize impls for f16 and bf16 (#47) - (725777b) - Al Johri
- Add dashmap feature with GetSize impls for DashMap and DashSet (#48) - (faf1b09) - Al Johri
New Contributors
Full Changelog: 0.8.0...0.9.0
-
0.8.020 Apr 2026Release notes
Open source →Bug Fixes
- (changelog) add space after breaking change indicator in commit message formatting - (dd2c41f) - Nicolas
Features
- (dependencies) update indexmap to 2.13 and ordermap to 1.1 - (af4b9dd) - Nicolas
- (dependencies) Update hashbrown, indexmap & ordermap - (b152bfd) - Nicolas
Tests
- Enhance test coverage and layout - (f676529) - Nicolas
Release notes
Open source →Bug Fixes
- (changelog) add space after breaking change indicator in commit message formatting - (dd2c41f) - Nicolas
Features
- (dependencies) update indexmap to 2.13 and ordermap to 1.1 - (af4b9dd) - Nicolas
- (dependencies) Update hashbrown, indexmap & ordermap - (b152bfd) - Nicolas
Tests
- Enhance test coverage and layout - (f676529) - Nicolas
-
0.7.425 Jan 2026Release notes
Open source →Bug Fixes
- (derive) improve error handling - (ef02aef) - Nicolas
- (sync) handle poisoned locks - (27af5ea) - Nicolas
Refactoring
-
0.7.304 Dec 2025Release notes
Open source →What's Changed
- feat: Optionally implement GetSize for ordermap by @oconnor663 in #40
New Contributors
- @oconnor663 made their first contribution in #40
Full Changelog: 0.7.2...0.7.3
-
0.7.213 Nov 2025 -
0.7.126 Oct 2025Release notes
Open source →Bug Fixes
- add missing LICENSE file in the published get-size2 crate and update authors (#36) - (b6f2970) - Ben Beasley
Features
- implement GetSize for RefCell<T> - (8ee6af7) - Nicolas
-
0.7.020 Sep 2025Release notes
Open source →Features
- [breaking] Keep size tracker alive through recursive calls to
get_heap_size_with_tracker(#34) - (39a9baf) - Ibraheem Ahmed
Miscellaneous Chores
- set correct version for get-size-derive - (d3abc1d) - Nicolas
- [breaking] Keep size tracker alive through recursive calls to
-
0.6.319 Sep 2025 -
0.6.206 Aug 2025Release notes
Open source →Bug Fixes
- remove
'staticrequirement for tracked objects (#33) - (209bb8c) - Ibraheem Ahmed
- remove
-
0.6.126 Jul 2025Release notes
Open source →Bug Fixes
- update Cow implementation to support unsized types and add tests for heap size calculation (#31) - (45e957d) - Zhu He
Features
- implement GetSize for Rc and Arc slices with corresponding tests (#32) - (e32d05f) - Zhu He
-
0.6.023 Jul 2025Release notes
Open source →Bug Fixes
- update version for get-size-derive - (db495ea) - Nicolas
- heap size calculation for spilled
SmallVec(#28) - (e6b5381) - Micha Reiser - heap size calculation for spilled
CompactStr(#30) - (c730c67) - Micha Reiser - simplify iteration over elements in heap size calculation - (5e3feda) - Nicolas
Features
- Add
ThinVecsupport (#29) - (c46839c) - Micha Reiser
-
0.5.209 Jul 2025Release notes
Open source →Features
- Optionally implement GetSize for indexmap (#26) - (d6e3310) - Brian Janssen
Lint
- fix new lints in rust 1.88 - (7292f5e) - Nicolas
-
0.5.125 Jun 2025Release notes
Open source →Bug Fixes
- correctly determine size for enums (#24) - (3c5bd18) - Nicolas
Miscellaneous Chores
- add top-level
heap_sizefunction (#25) - (f3b5e6e) - Ibraheem Ahmed
Build
- update to newer cargo-verset to set dependency version automatically - (b1154e4) - Nicolas
-
0.5.025 Jun 2025Release notes
Open source →Bug Fixes
- account for padding in
HashMapallocation size (#23) - (492b9d8) - Ibraheem Ahmed
Features
- [breaking] Impl for all
Rangetypes, while accounting for possible heap-allocations of indices. (#16) - (90d354b) - Jasper - Add
smallvecfeature (#20) - (e18b27e) - Ibraheem Ahmed - Add
hashbrownfeature (#21) - (02b5cfd) - Ibraheem Ahmed - Add
compact-strfeature (#22) - (97b6303) - Ibraheem Ahmed - Implement
GetSizeforOnceLock(#19) - (6480592) - Ibraheem Ahmed - implement
GetSizeforBox<str>(#18) - (8576eb4) - Ibraheem Ahmed
- account for padding in
-
0.4.117 Jun 2025Nothing published for this version
-
0.4.017 Jun 2025 withdrawnRelease notes
Open source →Features
- Add default impl for Range<I> (#15) - (ca4ce14) - Jasper
- Generalize impl for Hash{Set,Map} for all Hashers (#14) - (dc825d1) - Jasper
Build
- prepare for rust 1.87 (#13) - (2c83579) - Nicolas
-
0.3.018 Apr 2025 -
0.2.009 Apr 2025Nothing published for this version
-
0.1.418 Mar 2025Release notes
Open source →Features
- (chrono) Optionally implement GetSize for chrono and chrono-tz (#9) - (309aab0) - Brian Janssen
- (url) Optionally implement GetSize for url (#8) - (522be10) - Brian Janssen
Miscellaneous Chores
- (ci) refactor ci workflow (#10) - (f425714) - Nicolas
-
0.1.328 Dec 2024Nothing published for this version
-
0.1.214 Sep 2024Release notes
Open source →Feature
- Remove need of use get_size::GetSize for #[derive(get_size::GetSize)] (#3) - (067e8e3) - Nicolas
-
0.1.114 Sep 2024Nothing published for this version
-
0.1.014 Sep 2024 withdrawnNothing published for this version
-
0.1.0-beta.113 Sep 2024 pre-releaseNothing published for this version