CasperLabs / datasize-rs

Heap memory usage estimation
Other
16 stars 13 forks source link

When using without default features, std types are not available #4

Open Fraser999 opened 3 years ago

Fraser999 commented 3 years ago

For example, DataSize is not implemented for alloc::{collections::BTreeMap, string::String, vec::Vec}.

marc-casperlabs commented 1 year ago

If we add these, we should add another alloc feature to put these behind. We can probably get away with just moving the existing impls for these behind allow and having std depend on said feature!