Aeledfyr / deepsize

A rust crate to find the total size of an object, on the stack and on the heap
MIT License
103 stars 19 forks source link

Slotmap support #8

Closed dtolnay closed 5 years ago

dtolnay commented 5 years ago

Moved from https://github.com/dtolnay/request-for-implementation/issues/22#issuecomment-457410613:

how would I add integration for some of the dynamic storage crates (such as slotmap), without making it a dependency (only using the impl if the crate is already being used)?

dtolnay commented 5 years ago

You would need to make slotmap an optional dependency that would be enabled by whichever downstream crates require slotmap support in deepsize. Check out:

Aeledfyr commented 5 years ago

slotmap support has been added in version 0.1.2