v0.5.0 - 2023-08-08
๐ Features
-
Add a with_root argument to compression methods - Gankra, pr61
The compression methods take a path to a directory to tar/zip up. The
with_root argument specifies a root prefix of directories that the
archive's contents should be nested under. If None then the dir's contents
are flattened into the root of the archive.e.g. to make a tar.gz that matches the npm package format (which
wants the tarball to contain a dir named "package"), you can
compress:"path/to/contents/", Some("package")
-
Add more copying APIs to LocalAsset - Gankra, pr62
LocalAsset now includes
copy_named
,copy_dir
, andcopy_dir_named
.
Allcopy
functions were change to return aUtf8PathBuf
instead of aPathBuf
.