Skip to content

Commit

Permalink
Bump to 0.9.1 and fix CRC version
Browse files Browse the repository at this point in the history
  • Loading branch information
Kimahriman committed Apr 8, 2024
1 parent 32a389c commit 6903ab9
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
10 changes: 5 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/hdfs-native-object-store/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hdfs-native-object-store"
version = "0.9.0"
version = "0.9.1"
edition = "2021"
authors = ["Adam Binford <[email protected]>"]
homepage = "https://github.com/Kimahriman/hdfs-native"
Expand Down
4 changes: 2 additions & 2 deletions crates/hdfs-native/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hdfs-native"
version = "0.9.0"
version = "0.9.1"
edition = "2021"
authors = ["Adam Binford <[email protected]>"]
homepage = "https://github.com/Kimahriman/hdfs-native"
Expand All @@ -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 }
Expand Down
6 changes: 3 additions & 3 deletions crates/hdfs-native/src/hdfs/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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<Slice16<u32>> = Crc::<Slice16<u32>>::new(&CRC_32_CKSUM);
const CRC32C: Crc<Slice16<u32>> = Crc::<Slice16<u32>>::new(&CRC_32_ISCSI);
const CRC32: Crc<u32, Table<16>> = Crc::<u32, Table<16>>::new(&CRC_32_CKSUM);
const CRC32C: Crc<u32, Table<16>> = Crc::<u32, Table<16>>::new(&CRC_32_ISCSI);

pub(crate) static DATANODE_CACHE: Lazy<DatanodeConnectionCache> =
Lazy::new(DatanodeConnectionCache::new);
Expand Down
2 changes: 1 addition & 1 deletion python/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hdfs-native-python"
version = "0.9.0"
version = "0.9.1"
edition = "2021"
authors = ["Adam Binford <[email protected]>"]
homepage = "https://github.com/Kimahriman/hdfs-native"
Expand Down

0 comments on commit 6903ab9

Please sign in to comment.