Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
strategy:
matrix:
rust:
- 1.65.0
- 1.83.0
- stable
- beta
steps:
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description = "Rust implementation of CRC with support of various standards"
keywords = ["crc", "crc16", "crc32", "crc64", "hash"]
categories = ["algorithms", "no-std"]
edition = "2021"
rust-version = "1.65"
rust-version = "1.83"

[dependencies]
crc-catalog = "2.4.0"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ assert_eq!(digest.finalize(), 0xaee7);

### Minimum supported Rust version (MSRV)

This crate's MSRV is 1.65.
This crate's MSRV is 1.83.

At a minimum, the MSRV will be <= the oldest stable release in the last 12 months. MSRV may be bumped in minor version releases.

Expand Down
2 changes: 1 addition & 1 deletion src/crc128.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ where
Digest { crc, value }
}

pub fn update(&mut self, bytes: &[u8]) {
pub const fn update(&mut self, bytes: &[u8]) {
self.value = self.crc.update(self.value, bytes);
}

Expand Down
2 changes: 1 addition & 1 deletion src/crc16.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ where
Digest { crc, value }
}

pub fn update(&mut self, bytes: &[u8]) {
pub const fn update(&mut self, bytes: &[u8]) {
self.value = self.crc.update(self.value, bytes);
}

Expand Down
2 changes: 1 addition & 1 deletion src/crc32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ where
Digest { crc, value }
}

pub fn update(&mut self, bytes: &[u8]) {
pub const fn update(&mut self, bytes: &[u8]) {
self.value = self.crc.update(self.value, bytes);
}

Expand Down
2 changes: 1 addition & 1 deletion src/crc64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ where
Digest { crc, value }
}

pub fn update(&mut self, bytes: &[u8]) {
pub const fn update(&mut self, bytes: &[u8]) {
self.value = self.crc.update(self.value, bytes);
}

Expand Down
2 changes: 1 addition & 1 deletion src/crc8.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ where
Digest { crc, value }
}

pub fn update(&mut self, bytes: &[u8]) {
pub const fn update(&mut self, bytes: &[u8]) {
self.value = self.crc.update(self.value, bytes);
}

Expand Down