v0.2.0 - 2023-04-27
🎁 Features
-
✨ New
LocalAsset
functionality! - shadows-withal, pr38, pr46We've added a lot more functions to
LocalAsset
:write_new_all
, to write a file and its parent directoriescreate_dir
, which creates, well, a new directorycreate_dir_all
, which creates a directory and its parent directoriesremove_file
, which deletes a fileremove_dir
, which deletes an empty directoryremove_dir_all
, which deletes a directory and its contentstar_{gz,xz,zstd}_dir
, which are three separate functions that create a tar archive with the
specified compression algorithm, either Gzip, Xzip, or Zstdzip_dir
, which creates a zip archive
-
✨ New feature:
SourceFile::span_for_substr
- Gankra, pr35This function enables the ability to get spans even when using a tool that
doesn't support them as long as it returns actual substrings pointing into
the original SourceFile's inner String.