with_capacity_safe 0.4.2

A safer alternative to Vec::with_capacity with into_raw_parts which can be used from stable
Documentation