From 1428bb2e4c59a5e16064cc12b263d8e317521841 Mon Sep 17 00:00:00 2001 From: Min Shao Date: Fri, 9 Aug 2024 19:58:55 -0700 Subject: [PATCH] Update ndarray to 0.16.0, bump version to 0.11.0 --- CHANGELOG.md | 7 +++++++ Cargo.toml | 4 ++-- src/lib.rs | 8 +++----- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5527b5c..c4dd0f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ file is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.11.0] - 2024-08-09 + +### Changed + +- Update ndarray to 0.16. + ## [0.10.1] - 2023-05-23 ### Fixed @@ -132,6 +138,7 @@ Versioning](https://semver.org/spec/v2.0.0.html). - Kafka input/output and an example of their usage. +[0.11.0]: https://github.com/petabi/eventio/compare/0.10.1...0.11.0 [0.10.1]: https://github.com/petabi/eventio/compare/0.10.0...0.10.1 [0.10.0]: https://github.com/petabi/eventio/compare/0.9.0...0.10.0 [0.9.0]: https://github.com/petabi/eventio/compare/0.8.0...0.9.0 diff --git a/Cargo.toml b/Cargo.toml index 466d652..c2d50e3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "eventio" -version = "0.10.1" +version = "0.11.0" authors = ["Min Kim ", "Min Shao "] edition = "2021" rust-version = "1.60" @@ -24,7 +24,7 @@ pcap = ["pcap-parser"] [dependencies] crossbeam-channel = "0.5" kafka = { version = "0.9", default-features = false, optional = true } -ndarray = { version = "0.15", optional = true } +ndarray = { version = "0.16", optional = true } nom = "7" pcap-parser = { version = "0.14", features = [ "data", diff --git a/src/lib.rs b/src/lib.rs index 2528be5..0c45749 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -108,11 +108,9 @@ impl fmt::Display for Error { Self::CannotFetch(e) => write!(f, "cannot fetch message from Kafka: {e}"), Self::InvalidMessage(e) => write!(f, "invalid MessagePack format: {e}"), Self::Fatal(s) => write!(f, "fatal error: {s}"), - Self::TooManyEvents(n) => write!( - f, - "cannot handle {n} events (expected < {})", - u32::max_value() - ), + Self::TooManyEvents(n) => { + write!(f, "cannot handle {n} events (expected < {})", u32::MAX) + } } } }