Skip to content

v0.2.0 - 2023-04-27

Compare
Choose a tag to compare
@shadows-withal shadows-withal released this 27 Apr 14:26
· 264 commits to main since this release
4d5c421

🎁 Features

  • ✨ New LocalAsset functionality! - shadows-withal, pr38, pr46

    We've added a lot more functions to LocalAsset:

    • write_new_all, to write a file and its parent directories
    • create_dir, which creates, well, a new directory
    • create_dir_all, which creates a directory and its parent directories
    • remove_file, which deletes a file
    • remove_dir, which deletes an empty directory
    • remove_dir_all, which deletes a directory and its contents
    • tar_{gz,xz,zstd}_dir, which are three separate functions that create a tar archive with the
      specified compression algorithm, either Gzip, Xzip, or Zstd
    • zip_dir, which creates a zip archive
  • ✨ New feature: SourceFile::span_for_substr - Gankra, pr35

    This 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.

🛠️ Fixes

  • Simply SourceFile::new and new_empty - Gankra, pr43

    SourceFile::new and new_empty no longer return Results and simply use the origin_path
    as the file name, making them appropriate for synthetic/test inputs that don't map
    to actual files.