I have a utility module that’s best left private: it’s not apropos to my crate and I want to be able to change the internal API without having to do a version bump. Trick is, I also want to be able to benchmark this utility module. Benchmarks – unless I’m much mistaken – only work with the public interface of a crate.
How should I go about exposing my utility module as public only for benchmarking? I thought maybe I’d use a feature flag but I couldn’t tell if that was a hack or not.