I'm implementing several different data structures that achieve the same thing in order to benchmark them against each other. Benchmarking time is fairly easy with
criterion et al, but I'd also like to understand how memory allocation differs too. To do that, I'd quite like to use the Allocator APIs, which are unstable, but I'd rather have a variation of the crate which was stable.
Is it possible to optionally use the Allocator API?
I tried reading the
Vec source code and then wrote...
pub struct CompressedOrderedHexastore<I, #[unstable(feature = "allocator_api", issue = "32838")] A: Allocator = Global>
That gave me an error
error[E0734]: stability attributes may not be used outside of the standard library.