Release v2.1.0

This commit is contained in:
Steven Roose 2023-10-19 14:51:28 +01:00
parent 8df746dcdd
commit 125abebde6
No known key found for this signature in database
GPG Key ID: 2F2A88D7F8D68E87
3 changed files with 11 additions and 2 deletions

View File

@ -1,6 +1,15 @@
CHANGELOG CHANGELOG
========= =========
# v2.1.0
- Add support for Portuguese as per addition to BIP.
- Add constant Language::ALL and deprecate Language::all()
- Add Mnemonic::words and deprecate Mnemonic::word_iter
- Add Mnemonic::word_indices
- Use `rand_core` if `rand` feature is not set
- Add `alloc` feature to gate `unicode-normalization`
# v2.0.0 # v2.0.0
- Set Rust edition to 2018 - Set Rust edition to 2018

View File

@ -1,6 +1,6 @@
[package] [package]
name = "bip39" name = "bip39"
version = "2.0.0" version = "2.1.0"
authors = ["Steven Roose <steven@stevenroose.org>"] authors = ["Steven Roose <steven@stevenroose.org>"]
license = "CC0-1.0" license = "CC0-1.0"
homepage = "https://github.com/rust-bitcoin/rust-bip39/" homepage = "https://github.com/rust-bitcoin/rust-bip39/"

View File

@ -337,7 +337,7 @@ impl Mnemonic {
} }
/// Returns an iterator over the words of the [Mnemonic]. /// Returns an iterator over the words of the [Mnemonic].
#[deprecated(note = "Use Mnemonic::words instead")] #[deprecated(since = "2.1.0", note = "Use Mnemonic::words instead")]
pub fn word_iter(&self) -> impl Iterator<Item = &'static str> + Clone + '_ { pub fn word_iter(&self) -> impl Iterator<Item = &'static str> + Clone + '_ {
self.words() self.words()
} }