All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
v0.6.1 - 2023-02-24
- Fixed
RUSTSEC-2020-0071
v0.6.0 - 2022-12-19
- Consolidated HTTP error variants into a single variant,
HttpError
, which sources directly from the underlyingreqwest::Error
for better error messages.
v0.5.3 - 2022-03-07
- Added feature flag
rustls-tls
to make use ofrustls-tls
overnative-tls
inreqwest
.
v0.5.2 - 2022-03-07
v0.5.1 - 2020-03-29
v0.5.0 - 2020-01-29
- Switched to
color-eyre
for error handling in the CLI. - Improved full download progress bar.
Some(ProgressBar::Full)
is now the default for the library.- Upgraded
reqwest
dependency to0.11
.
v0.4.5 - 2020-09-15
- Added a method
CacheBuilder::progress_bar
to set the progress bar type, or to disable the progess bar entirely. The options areProgressBar::Light
andProgressBar::Full
. The default when usingcached-path
as a library isProgressBar::Light
, while the default from the command-line isProgressBar::Full
. You can also disable the progress bar from the command-line by passing the "-q" / "--quietly" flag.
v0.4.4 - 2020-09-13
- Added a method
Cache::cached_path_with_options
and a correspondingOptions
struct. - Added ability to automatically extract archives through the
Cache::cached_path_with_options
method. - Added integration tests.
- Added spinner progress bar to downloads.
Meta
struct is no longer public.Cache::cached_path_in_subdir
is now deprecated.httpmock
updated and tests refactored.
- Removed the
only_keep_latest
setting for theCache
.
v0.4.3 - 2020-09-11
- Updated the download method to stream the response into the target file.
v0.4.2 - 2020-09-11
cached-path
now compiles on Windows.
v0.4.1 - 2020-09-10
- Added a method
Cache::cached_path_in_subdir
to use a specified subdirectory of the cache root.
- Ensure cache directory exists every time
Cache::cached_path
orCache::cached_path_in_subdir
is called.
v0.4.0 - 2020-09-10
- Fixed default timeout of
None
. Meta
is now written to file before the tempfile of a downloaded resource is moved to its final cache location. This avoids a bug (albeit, an unlikely one) where the cache could be corrupted if writing theMeta
to file fails.
v0.4.0-rc1 - 2020-09-09
- Switched to using
thiserror
andanyhow
for error handling.
v0.3.0 - 2020-06-13
- API is now syncronous
root
configuration option renamed todir
.
- Added a file lock mechanism to make guard against parallel downloads of the same file.
- Added an "offline" mode.
- Minor improvements to internal logic that make caching more robust.