From 6903ab9b5ebae0ea4c03e1091b2022597c98a4cd Mon Sep 17 00:00:00 2001 From: Adam Binford Date: Sun, 7 Apr 2024 21:45:19 -0400 Subject: [PATCH] Bump to 0.9.1 and fix CRC version --- .github/workflows/python-release.yml | 2 +- Cargo.lock | 10 +++++----- crates/hdfs-native-object-store/Cargo.toml | 2 +- crates/hdfs-native/Cargo.toml | 4 ++-- crates/hdfs-native/src/hdfs/connection.rs | 6 +++--- python/Cargo.toml | 2 +- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/python-release.yml b/.github/workflows/python-release.yml index 15b528b..c60336a 100644 --- a/.github/workflows/python-release.yml +++ b/.github/workflows/python-release.yml @@ -80,7 +80,7 @@ jobs: uses: PyO3/maturin-action@v1 with: command: sdist - args: --out dist --manifest-path python/Cargo.toml --features kerberos + args: --out dist --manifest-path python/Cargo.toml - name: Upload sdist uses: actions/upload-artifact@v3 with: diff --git a/Cargo.lock b/Cargo.lock index b7b3e12..70c5e4d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -358,9 +358,9 @@ dependencies = [ [[package]] name = "crc" -version = "3.1.0-beta.1" +version = "3.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a02c6ee9f6aa3049d991777025b73fbecc46696f3b3946c4eae4a0fbedec65ab" +checksum = "c2b432c56615136f8dba245fed7ec3d5518c500a31108661067e61e72fe7e6bc" dependencies = [ "crc-catalog", ] @@ -770,7 +770,7 @@ checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604" [[package]] name = "hdfs-native" -version = "0.9.0" +version = "0.9.1" dependencies = [ "aes", "base64", @@ -814,7 +814,7 @@ dependencies = [ [[package]] name = "hdfs-native-object-store" -version = "0.9.0" +version = "0.9.1" dependencies = [ "async-trait", "bytes", @@ -833,7 +833,7 @@ dependencies = [ [[package]] name = "hdfs-native-python" -version = "0.9.0" +version = "0.9.1" dependencies = [ "bytes", "env_logger", diff --git a/crates/hdfs-native-object-store/Cargo.toml b/crates/hdfs-native-object-store/Cargo.toml index 74b9e31..a47d336 100644 --- a/crates/hdfs-native-object-store/Cargo.toml +++ b/crates/hdfs-native-object-store/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "hdfs-native-object-store" -version = "0.9.0" +version = "0.9.1" edition = "2021" authors = ["Adam Binford "] homepage = "https://github.com/Kimahriman/hdfs-native" diff --git a/crates/hdfs-native/Cargo.toml b/crates/hdfs-native/Cargo.toml index bc05570..2522382 100644 --- a/crates/hdfs-native/Cargo.toml +++ b/crates/hdfs-native/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "hdfs-native" -version = "0.9.0" +version = "0.9.1" edition = "2021" authors = ["Adam Binford "] homepage = "https://github.com/Kimahriman/hdfs-native" @@ -17,7 +17,7 @@ bytes = { workspace = true } cbc = "0.1" chrono = { workspace = true } cipher = "0.4" -crc = "3.1.0-beta.1" +crc = "3.2" ctr = "0.9" des = "0.8" futures = { workspace = true } diff --git a/crates/hdfs-native/src/hdfs/connection.rs b/crates/hdfs-native/src/hdfs/connection.rs index da28105..861f58e 100644 --- a/crates/hdfs-native/src/hdfs/connection.rs +++ b/crates/hdfs-native/src/hdfs/connection.rs @@ -7,7 +7,7 @@ use std::sync::Mutex; use bytes::{Buf, BufMut, Bytes, BytesMut}; use chrono::{prelude::*, TimeDelta}; -use crc::{Crc, Slice16, CRC_32_CKSUM, CRC_32_ISCSI}; +use crc::{Crc, Table, CRC_32_CKSUM, CRC_32_ISCSI}; use log::{debug, warn}; use once_cell::sync::Lazy; use prost::Message; @@ -34,8 +34,8 @@ const DATA_TRANSFER_VERSION: u16 = 28; const MAX_PACKET_HEADER_SIZE: usize = 33; const DATANODE_CACHE_EXPIRY: TimeDelta = TimeDelta::seconds(3); -const CRC32: Crc> = Crc::>::new(&CRC_32_CKSUM); -const CRC32C: Crc> = Crc::>::new(&CRC_32_ISCSI); +const CRC32: Crc> = Crc::>::new(&CRC_32_CKSUM); +const CRC32C: Crc> = Crc::>::new(&CRC_32_ISCSI); pub(crate) static DATANODE_CACHE: Lazy = Lazy::new(DatanodeConnectionCache::new); diff --git a/python/Cargo.toml b/python/Cargo.toml index 2ed1a8d..d69dc5b 100644 --- a/python/Cargo.toml +++ b/python/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "hdfs-native-python" -version = "0.9.0" +version = "0.9.1" edition = "2021" authors = ["Adam Binford "] homepage = "https://github.com/Kimahriman/hdfs-native"