Skip to content

Releases: bgpkit/oneio

v0.16.2

23 Feb 22:56
8aee543
Compare
Choose a tag to compare

Highlights

  • switching to flate2 with zlib-ng as the compression library for handling gzip files
    • zlib-ng is a drop-in replacement for zlib with better performance

v0.16.1

10 Feb 22:01
3ae4999
Compare
Choose a tag to compare

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

29 Jan 15:19
d6a7e1f
Compare
Choose a tag to compare

Breaking changes

  • switch to rustls as the default TLS backend
  • cleaned up the feature flags
    • removed no-cache and vendored-openssl flags
    • removed openssl optional dependency
    • add digest feature flag to allow calculating SHA256 digest of a file, enabled by default

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

26 Jan 23:46
5a0d688
Compare
Choose a tag to compare

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

26 Jan 19:04
7215e52
Compare
Choose a tag to compare

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 and oneio 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:

  1. delimiter changed from Option<&str> to Option<String>
  2. new dirs boolean flag to allow returning only matching directories in the specified prefix
    • the delimiter is also automatically forced to Some("/".to_string()) if dirs is specified and delimiter is specified as None.

Misc

  • "cargo publish" process is now automated with GitHub actions
  • test process now makes sure s3 modules' doc-tests must compile

v0.15.8

18 Dec 19:34
c4ce145
Compare
Choose a tag to compare

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

18 Dec 19:10
4aafb7f
Compare
Choose a tag to compare
v0.15.8-beta.1 Pre-release
Pre-release

Highlights

  • GitHub actions uses vendored openssl instead of system openssl.

v0.15.7

18 Dec 18:22
6ea068d
Compare
Choose a tag to compare

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

17 Dec 04:05
130eae4
Compare
Choose a tag to compare

What's Changed

  • support getting reader directly by s3 url by @digizeph in #31

Full Changelog: v0.15.5...v0.15.6

V0.15.5: `s3_copy` and `s3_delete`

15 Dec 22:49
97bccd8
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.15.4...v0.15.5