Use the standard library functionality in TempDir.
Utilities for working with temporary directories in Rust. Most of the functionality is copied from the old Rust io
and path
packages, with updates as appropriate to work with the newer Rust standard library APIs.