Skip to content

Commit 5d025ce

Browse files
committed
chore(release): Release version 0.1.2
2 parents 41c0aba + fe74f57 commit 5d025ce

File tree

12 files changed

+641
-11
lines changed

12 files changed

+641
-11
lines changed

.bumpversion.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# SPDX-License-Identifier: Apache-2.0 OR MIT
44

55
[tool.bumpversion]
6-
current_version = "0.1.1"
6+
current_version = "0.1.2"
77

88
[[tool.bumpversion.files]]
99
filename = "README.md"

.github/workflows/CI.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- aarch64-apple-darwin
2525
- x86_64-pc-windows-msvc
2626
toolchain:
27-
- 1.61.0 # MSRV
27+
- 1.67.0 # MSRV
2828
- stable
2929
include:
3030
- target: x86_64-unknown-linux-gnu
@@ -58,7 +58,7 @@ jobs:
5858
- aarch64-apple-darwin
5959
- x86_64-pc-windows-msvc
6060
toolchain:
61-
- 1.61.0
61+
- 1.67.0
6262
- stable
6363
include:
6464
- target: x86_64-unknown-linux-gnu

.github/workflows/REUSE.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ jobs:
1919
- name: Checkout code
2020
uses: actions/checkout@v4
2121
- name: REUSE Compliance Check
22-
uses: fsfe/reuse-action@v4.0.0
22+
uses: fsfe/reuse-action@v5.0.0

CHANGELOG.adoc

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,29 @@ All notable changes to this project will be documented in this file.
1414
The format is based on https://keepachangelog.com/[Keep a Changelog], and this
1515
project adheres to https://semver.org/[Semantic Versioning].
1616

17+
== {compare-url}/v0.1.1\...v0.1.2[0.1.2] - 2024-11-30
18+
19+
=== Added
20+
21+
* Add `BitInt::checked_ilog` and `BitUint::checked_ilog`
22+
({pull-request-url}/12[#12])
23+
* Add `BitInt::checked_ilog2` and `BitUint::checked_ilog2`
24+
({pull-request-url}/12[#12])
25+
* Add `BitInt::checked_ilog10` and `BitUint::checked_ilog10`
26+
({pull-request-url}/12[#12])
27+
* Add `BitInt::checked_div_euclid` and `BitUint::checked_div_euclid`
28+
({pull-request-url}/14[#14])
29+
* Add `BitInt::checked_rem_euclid` and `BitUint::checked_rem_euclid`
30+
({pull-request-url}/14[#14])
31+
* Add `BitInt::checked_shl` and `BitUint::checked_shl`
32+
({pull-request-url}/14[#14])
33+
* Add `BitInt::checked_shr` and `BitUint::checked_shr`
34+
({pull-request-url}/14[#14])
35+
36+
=== Changed
37+
38+
* Bump MSRV to 1.67.0 ({pull-request-url}/12[#12])
39+
1740
== {compare-url}/v0.1.0\...v0.1.1[0.1.1] - 2024-11-14
1841

1942
=== Added

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
[package]
66
name = "bit-int"
7-
version = "0.1.1"
7+
version = "0.1.2"
88
authors = ["Shun Sakai <[email protected]>"]
99
edition = "2021"
10-
rust-version = "1.61.0"
10+
rust-version = "1.67.0"
1111
description = "An arbitrary fixed bit-width integer library"
1212
documentation = "https://docs.rs/bit-int"
1313
readme = "README.md"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Add this to your `Cargo.toml`:
2121

2222
```toml
2323
[dependencies]
24-
bit-int = "0.1.1"
24+
bit-int = "0.1.2"
2525
```
2626

2727
### Documentation
@@ -30,7 +30,7 @@ See the [documentation][docs-url] for more details.
3030

3131
## Minimum supported Rust version
3232

33-
The minimum supported Rust version (MSRV) of this library is v1.61.0.
33+
The minimum supported Rust version (MSRV) of this library is v1.67.0.
3434

3535
## Source code
3636

benches/ops.rs

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,20 @@ fn checked_div_bit_uint(b: &mut Bencher) {
6565
b.iter(|| n.checked_div(2));
6666
}
6767

68+
#[bench]
69+
fn checked_div_euclid_bit_int(b: &mut Bencher) {
70+
let n = BitI32::<31>::new(42).unwrap();
71+
72+
b.iter(|| n.checked_div_euclid(2));
73+
}
74+
75+
#[bench]
76+
fn checked_div_euclid_bit_uint(b: &mut Bencher) {
77+
let n = BitU32::<31>::new(42).unwrap();
78+
79+
b.iter(|| n.checked_div_euclid(2));
80+
}
81+
6882
#[bench]
6983
fn checked_rem_bit_int(b: &mut Bencher) {
7084
let n = BitI32::<31>::new(5).unwrap();
@@ -79,6 +93,62 @@ fn checked_rem_bit_uint(b: &mut Bencher) {
7993
b.iter(|| n.checked_rem(2));
8094
}
8195

96+
#[bench]
97+
fn checked_rem_euclid_bit_int(b: &mut Bencher) {
98+
let n = BitI32::<31>::new(5).unwrap();
99+
100+
b.iter(|| n.checked_rem_euclid(2));
101+
}
102+
103+
#[bench]
104+
fn checked_rem_euclid_bit_uint(b: &mut Bencher) {
105+
let n = BitU32::<31>::new(5).unwrap();
106+
107+
b.iter(|| n.checked_rem_euclid(2));
108+
}
109+
110+
#[bench]
111+
fn checked_ilog_bit_int(b: &mut Bencher) {
112+
let n = BitI32::<31>::new(5).unwrap();
113+
114+
b.iter(|| n.checked_ilog(5));
115+
}
116+
117+
#[bench]
118+
fn checked_ilog_bit_uint(b: &mut Bencher) {
119+
let n = BitU32::<31>::new(5).unwrap();
120+
121+
b.iter(|| n.checked_ilog(5));
122+
}
123+
124+
#[bench]
125+
fn checked_ilog2_bit_int(b: &mut Bencher) {
126+
let n = BitI32::<31>::new(2).unwrap();
127+
128+
b.iter(|| n.checked_ilog2());
129+
}
130+
131+
#[bench]
132+
fn checked_ilog2_bit_uint(b: &mut Bencher) {
133+
let n = BitU32::<31>::new(2).unwrap();
134+
135+
b.iter(|| n.checked_ilog2());
136+
}
137+
138+
#[bench]
139+
fn checked_ilog10_bit_int(b: &mut Bencher) {
140+
let n = BitI32::<31>::new(10).unwrap();
141+
142+
b.iter(|| n.checked_ilog10());
143+
}
144+
145+
#[bench]
146+
fn checked_ilog10_bit_uint(b: &mut Bencher) {
147+
let n = BitU32::<31>::new(10).unwrap();
148+
149+
b.iter(|| n.checked_ilog10());
150+
}
151+
82152
#[bench]
83153
fn checked_neg_bit_int(b: &mut Bencher) {
84154
let n = BitI32::<31>::new(5).unwrap();
@@ -93,6 +163,34 @@ fn checked_neg_bit_uint(b: &mut Bencher) {
93163
b.iter(|| n.checked_neg());
94164
}
95165

166+
#[bench]
167+
fn checked_shl_bit_int(b: &mut Bencher) {
168+
let n = BitI32::<31>::new(0x01).unwrap();
169+
170+
b.iter(|| n.checked_shl(4));
171+
}
172+
173+
#[bench]
174+
fn checked_shl_bit_uint(b: &mut Bencher) {
175+
let n = BitU32::<31>::new(0x01).unwrap();
176+
177+
b.iter(|| n.checked_shl(4));
178+
}
179+
180+
#[bench]
181+
fn checked_shr_bit_int(b: &mut Bencher) {
182+
let n = BitI32::<31>::new(0x10).unwrap();
183+
184+
b.iter(|| n.checked_shr(4));
185+
}
186+
187+
#[bench]
188+
fn checked_shr_bit_uint(b: &mut Bencher) {
189+
let n = BitU32::<31>::new(0x10).unwrap();
190+
191+
b.iter(|| n.checked_shr(4));
192+
}
193+
96194
#[bench]
97195
fn checked_abs(b: &mut Bencher) {
98196
let n = BitI32::<31>::new(-5).unwrap();

clippy.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
#
33
# SPDX-License-Identifier: Apache-2.0 OR MIT
44

5-
msrv = "1.61.0"
5+
msrv = "1.67.0"

0 commit comments

Comments
 (0)