From 676d69d4da85b70eab74c44fe11944fe2bb268f8 Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Sun, 8 May 2022 11:52:21 -0600 Subject: [PATCH] v0.4.0 --- CHANGELOG.md | 18 ++++++++++++++++++ Cargo.lock | 2 +- Cargo.toml | 2 +- README.md | 6 +++--- src/lib.rs | 35 +++++++++++++++++------------------ 5 files changed, 40 insertions(+), 23 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e8542e7..e951b031 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,24 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## 0.4.0 (2022-05-08) +### Added +- Const-friendly `NonZero` from `UInt` ([#56]) +- Optional `der` feature ([#61], [#80]) + +### Changed +- Use `const_panic`; MSRV 1.57 ([#60]) +- 2021 edition ([#60]) + +### Fixed +- Pad limbs with zeros when displaying hexadecimal representation ([#74]) + +[#56]: https://github.com/RustCrypto/crypto-bigint/pull/56 +[#60]: https://github.com/RustCrypto/crypto-bigint/pull/60 +[#61]: https://github.com/RustCrypto/crypto-bigint/pull/61 +[#74]: https://github.com/RustCrypto/crypto-bigint/pull/74 +[#80]: https://github.com/RustCrypto/crypto-bigint/pull/80 + ## 0.3.2 (2021-11-17) ### Added - `Output = Self` to all bitwise ops on `Integer` trait ([#53]) diff --git a/Cargo.lock b/Cargo.lock index 7aab6e2c..3d3cfca8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -49,7 +49,7 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "crypto-bigint" -version = "0.4.0-pre.1" +version = "0.4.0" dependencies = [ "der", "generic-array", diff --git a/Cargo.toml b/Cargo.toml index d19ed1af..a0269d63 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "crypto-bigint" -version = "0.4.0-pre.1" # Also update html_root_url in lib.rs when bumping this +version = "0.4.0" description = """ Pure Rust implementation of a big integer library which has been designed from the ground-up for use in cryptographic applications. Provides constant-time, diff --git a/README.md b/README.md index 0fca501f..f4e3daba 100644 --- a/README.md +++ b/README.md @@ -35,8 +35,8 @@ version bump. Licensed under either of: - * [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0) - * [MIT license](http://opensource.org/licenses/MIT) +- [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0) +- [MIT license](http://opensource.org/licenses/MIT) at your option. @@ -48,7 +48,7 @@ dual licensed as above, without any additional terms or conditions. [//]: # (badges) -[crate-image]: https://img.shields.io/crates/v/crypto-bigint.svg +[crate-image]: https://buildstats.info/crate/crypto-bigint [crate-link]: https://crates.io/crates/crypto-bigint [docs-image]: https://docs.rs/crypto-bigint/badge.svg [docs-link]: https://docs.rs/crypto-bigint/ diff --git a/src/lib.rs b/src/lib.rs index dfb129db..ddd608b1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,21 @@ +#![no_std] +#![cfg_attr(docsrs, feature(doc_cfg))] #![doc = include_str!("../README.md")] +#![doc( + html_logo_url = "https://raw.githubusercontent.com/RustCrypto/meta/master/logo.svg", + html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/meta/master/logo.svg" +)] +#![forbid(unsafe_code)] +#![warn( + clippy::unwrap_used, + missing_docs, + missing_debug_implementations, + missing_copy_implementations, + rust_2018_idioms, + trivial_casts, + trivial_numeric_casts, + unused_qualifications +)] //! ## Usage //! @@ -120,24 +137,6 @@ //! [`Sub`]: core::ops::Sub //! [`CryptoRng`]: rand_core::CryptoRng -#![no_std] -#![cfg_attr(docsrs, feature(doc_cfg))] -#![doc( - html_logo_url = "https://raw.githubusercontent.com/RustCrypto/meta/master/logo.svg", - html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/meta/master/logo.svg", - html_root_url = "https://docs.rs/crypto-bigint/0.4.0-pre" -)] -#![forbid(unsafe_code, clippy::unwrap_used)] -#![warn( - missing_docs, - missing_debug_implementations, - missing_copy_implementations, - rust_2018_idioms, - trivial_casts, - trivial_numeric_casts, - unused_qualifications -)] - #[cfg(all(feature = "alloc", test))] extern crate alloc;