Is there any point in avoiding std when testing a no_std library?

As a practical matter, I maintain many no_std crates: memchr, aho-corasick, regex-syntax, regex-automata, regex, bstr, csv-core and probably more. Some even support no-alloc configurations. All of them use std in tests. I haven't experienced any particular problem with this approach in my years of doing it.

2 Likes