a rewrite of the rust glob crate