Skip to content

Commit dfae102

Browse files
committed
Bump version to v0.5.0-pre; remove deprecations
Breaking changes were introduced in #130, so this bumps the crate's version to a prerelease to denote that. It will be bumped to `pre.0` for an actual crate release. Also removes all deprecated APIs.
1 parent ba78afa commit dfae102

File tree

6 files changed

+2
-45
lines changed

6 files changed

+2
-45
lines changed

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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "crypto-bigint"
3-
version = "0.4.9"
3+
version = "0.5.0-pre"
44
description = """
55
Pure Rust implementation of a big integer library which has been designed from
66
the ground-up for use in cryptographic applications. Provides constant-time,

src/lib.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,6 @@ pub use crate::{
177177
};
178178
pub use subtle;
179179

180-
// TODO(tarcieri): remove these in the next breaking release
181-
#[allow(deprecated)]
182-
pub use crate::limb::{LimbUInt, WideLimbUInt};
183-
184180
pub(crate) use limb::{SignedWord, WideSignedWord};
185181

186182
#[cfg(feature = "generic-array")]

src/limb.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -70,20 +70,6 @@ pub type WideWord = u128;
7070
#[cfg(target_pointer_width = "64")]
7171
pub(crate) type WideSignedWord = i128;
7272

73-
//
74-
// Deprecated legacy names
75-
//
76-
77-
// TODO(tarcieri): remove these in the next breaking release
78-
79-
/// Deprecated: unsigned integer type that the [`Limb`] newtype wraps.
80-
#[deprecated(since = "0.4.8", note = "please use `Word` instead")]
81-
pub type LimbUInt = Word;
82-
83-
/// Deprecated: wide integer type which is double the width of [`Word`].
84-
#[deprecated(since = "0.4.8", note = "please use `WideWord` instead")]
85-
pub type WideLimbUInt = WideWord;
86-
8773
/// Highest bit in a [`Limb`].
8874
pub(crate) const HI_BIT: usize = Limb::BIT_SIZE - 1;
8975

src/uint.rs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -145,24 +145,6 @@ impl<const LIMBS: usize> UInt<LIMBS> {
145145
}
146146
}
147147

148-
/// Deprecated: borrow the inner limbs as an array of [`Word`]s.
149-
#[deprecated(since = "0.4.8", note = "please use `as_words` instead")]
150-
pub const fn as_uint_array(&self) -> &[Word; LIMBS] {
151-
self.as_words()
152-
}
153-
154-
/// Deprecated: create a [`UInt`] from an array of [`Word`]s.
155-
#[deprecated(since = "0.4.8", note = "please use `from_words` instead")]
156-
pub const fn from_uint_array(words: [Word; LIMBS]) -> Self {
157-
Self::from_words(words)
158-
}
159-
160-
/// Deprecated: create an array of [`Word`]s from a [`UInt`].
161-
#[deprecated(since = "0.4.8", note = "please use `to_words` instead")]
162-
pub const fn to_uint_array(self) -> [Word; LIMBS] {
163-
self.to_words()
164-
}
165-
166148
/// Borrow the limbs of this [`UInt`].
167149
// TODO(tarcieri): rename to `as_limbs` for consistency with `as_words`
168150
pub const fn limbs(&self) -> &[Limb; LIMBS] {

src/uint/bits.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,6 @@ impl<const LIMBS: usize> UInt<LIMBS> {
1212
}
1313
}
1414

15-
/// Calculate the number of bits needed to represent this number.
16-
#[deprecated(note = "please use `bits_vartime` instead")]
17-
#[inline(always)]
18-
pub const fn bits(self) -> usize {
19-
self.bits_vartime()
20-
}
21-
2215
/// Calculate the number of bits needed to represent this number.
2316
#[allow(trivial_numeric_casts)]
2417
pub const fn bits_vartime(self) -> usize {

0 commit comments

Comments
 (0)