Releases: bgpkit/oneio
Releases · bgpkit/oneio
v0.16.2
Highlights
- switching to
flate2
withzlib-ng
as the compression library for handlinggzip
fileszlib-ng
is a drop-in replacement forzlib
with better performance
v0.16.1
Highlights
- add
oneio::exists(path: &str)
function to check if a local or remote file exists.- currently support local file, http(s) remote and s3 remote files checking
Example usages
assert!(!oneio::exists("https://spaces.bgpkit.org/oneio/test_data_NOT_EXIST.json").unwrap());
assert!(oneio::exists("https://spaces.bgpkit.org/oneio/test_data.json").unwrap());
v0.16.0
Breaking changes
- switch to
rustls
as the default TLS backend - cleaned up the feature flags
- removed
no-cache
andvendored-openssl
flags - removed
openssl
optional dependency - add
digest
feature flag to allow calculating SHA256 digest of a file, enabled by default
- removed
Library changes
- add
oneio::download_with_retry
function to allow retrying download - add
oneio::get_sha256_digest
function to the library to calculate SHA256 digest of a file
CLI changes
- add
oneio digest FILE
command to calculate file SHA256 digest
v0.15.10
Hot fix
- fixed issue where
oneio s3 list BUCKET PREFIX
command not showing files match the prefix unless they are on the same directory as the prefix - fixed issue where running
oneio
without argument causing program to panic
v0.15.9
Highlights
- add support for installing via
cargo binstall
s3_list
now accepts a new forth parameter,dirs
boolean flag, to allow returning only the matching directories- add
oneio s3 list
andoneio s3 upload
commands to the CLI
Breaking changes
The signature of s3_list
function is now changed to:
pub fn s3_list(
bucket: &str,
prefix: &str,
delimiter: Option<String>,
dirs: bool,
) -> Result<Vec<String>, OneIoError> {}
This includes changes of:
delimiter
changed fromOption<&str>
toOption<String>
- new
dirs
boolean flag to allow returning only matching directories in the specified prefix- the
delimiter
is also automatically forced toSome("/".to_string())
ifdirs
is specified anddelimiter
is specified asNone
.
- the
Misc
- "cargo publish" process is now automated with GitHub actions
- test process now makes sure
s3
modules' doc-tests must compile
v0.15.8
Highlights
- Added
vendored-openssl
flag to enable GitHub actions builds for different systems. - GitHub releases automatically builds CLI binary for macOS (Universal), and linux (arm and amd64)
v0.15.8-beta.1
Highlights
- GitHub actions uses vendored openssl instead of system openssl.
v0.15.7
Highlights
- Module Refactoring: A dedicated module has been created for remote and utils. (ec80e02)
- Improvements in Caching Control: The HTTP caching is now controllable and disabled for CLI requests. (69de57c)
- Improved Error Handling: We have improved error handling in line reads. The application no longer attempts to read further if a line read fails, preventing any stalls. (fd1352f)
V0.15.6 reader from s3 url
What's Changed
Full Changelog: v0.15.5...v0.15.6
V0.15.5: `s3_copy` and `s3_delete`
What's Changed
Full Changelog: v0.15.4...v0.15.5