From d20b49b3eb9f46a0d704a8e07f373394c89c485b Mon Sep 17 00:00:00 2001
From: Jun Luo <4catcode@gmail.com>
Date: Thu, 15 Sep 2022 20:52:50 +0800
Subject: [PATCH] release: 0.2.1
---
CHANGELOG.rst | 6 ++++++
Cargo.lock | 2 +-
Cargo.toml | 2 +-
docs/requirements.txt | 2 +-
fastcrc/__info__.py | 2 +-
src/lib.rs | 1 +
6 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 853a333..b55dbbc 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -4,6 +4,12 @@ Change Log
This document records all notable changes to `fastcrc `_.
+0.2.1 (September 15, 2022)
+---------------------
+* feat: add `fastcrc.crc16.ibm_refin` and `cfastcrc.crc32.reversed_reciprocal_refin`, these are two experimental functions that may be removed in the future.
+* chore: build wheels for more platforms.
+* docs: improve documentation.
+
0.2.0 (June 19, 2022)
---------------------
* Add initial value optional parameter to all CRC functions. (`#1 `_)
diff --git a/Cargo.lock b/Cargo.lock
index a65d092..d576af0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -37,7 +37,7 @@ checksum = "2d0165d2900ae6778e36e80bbc4da3b5eefccee9ba939761f9c2882a5d9af3ff"
[[package]]
name = "fastcrc"
-version = "0.2.1-dev.8"
+version = "0.2.1"
dependencies = [
"crc",
"paste 1.0.9",
diff --git a/Cargo.toml b/Cargo.toml
index 6cb54b7..a837da9 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "fastcrc"
-version = "0.2.1-dev.8"
+version = "0.2.1"
authors = ["overcat <4catcode@gmail.com>"]
edition = "2018"
description = "A hyper-fast Python module for computing CRC(16, 32, 64) checksum"
diff --git a/docs/requirements.txt b/docs/requirements.txt
index b608a07..8dfa28d 100644
--- a/docs/requirements.txt
+++ b/docs/requirements.txt
@@ -1,2 +1,2 @@
-fastcrc==0.2.0
+fastcrc==0.2.1
sphinx
\ No newline at end of file
diff --git a/fastcrc/__info__.py b/fastcrc/__info__.py
index e4f729a..0b1e230 100644
--- a/fastcrc/__info__.py
+++ b/fastcrc/__info__.py
@@ -2,7 +2,7 @@
__description__ = "A hyper-fast Python module for computing CRC(16, 32, 64) checksum"
__url__ = "https://github.com/overcat/fastcrc"
__issues__ = f"{__url__}/issues"
-__version__ = "0.2.1-dev.8"
+__version__ = "0.2.1"
__author__ = "overcat"
__author_email__ = "4catcode@gmail.com"
__license__ = "MIT License"
diff --git a/src/lib.rs b/src/lib.rs
index 60d442a..b1aadc7 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -23,6 +23,7 @@ macro_rules! define_crc_fn {
let mut digest = match initial {
None => CRC.digest(),
Some(mut value) => {
+ // TODO: This might be a bug in crc-rs, let's fix it later.
value ^= $crc_type.xorout;
if $crc_type.refout {
value = value.reverse_bits()