From d2efdc08a7eb1d0d6c414b7b2ac41ce1fe1f9a43 Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Sat, 16 Jul 2022 08:18:59 +0900 Subject: [PATCH] Release 0.11.0 Signed-off-by: Yuki Okushi --- CHANGELOG.md | 11 ++++++++++- README.md | 4 ++-- phf/Cargo.toml | 6 +++--- phf/examples/unicase-example/Cargo.toml | 2 +- phf/src/lib.rs | 6 +++--- phf_codegen/Cargo.toml | 6 +++--- phf_codegen/src/lib.rs | 2 +- phf_codegen/test/Cargo.toml | 4 ++-- phf_generator/Cargo.toml | 4 ++-- phf_generator/src/lib.rs | 2 +- phf_macros/Cargo.toml | 6 +++--- phf_macros_tests/Cargo.toml | 4 ++-- phf_shared/Cargo.toml | 2 +- phf_shared/src/lib.rs | 2 +- 14 files changed, 35 insertions(+), 26 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cc9810e7..524a115f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,8 +2,17 @@ ## Unreleased + +## 0.11.0 + * Bump up MSRV to 1.60 -* Now the `unicase` feature works fine with the `macros` feature, doesn't need to import `phf-macros` directly. +* Crates' edition are now 2021 [#257] +* Remove `proc-macro-hack` dependency [#256] +* Now the `unicase` feature works fine with the `macros` feature, doesn't need to import `phf-macros` directly anymore. [#251] + +[#251]: https://github.com/rust-phf/rust-phf/pull/251 +[#256]: https://github.com/rust-phf/rust-phf/pull/256 +[#257]: https://github.com/rust-phf/rust-phf/pull/257 ## 0.10.1 diff --git a/README.md b/README.md index 4d7b9fdd..c6725c1c 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ will not work, set `default-features = false` for the dependency: ```toml [dependencies] # to use `phf` in `no_std` environments -phf = { version = "0.10", default-features = false } +phf = { version = "0.11", default-features = false } ``` ### phf_macros @@ -60,7 +60,7 @@ pub fn parse_keyword(keyword: &str) -> Option { ```toml [dependencies] -phf = { version = "0.10", features = ["macros"] } +phf = { version = "0.11", features = ["macros"] } ``` #### Note diff --git a/phf/Cargo.toml b/phf/Cargo.toml index c82970a0..a4bd3417 100644 --- a/phf/Cargo.toml +++ b/phf/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "phf" authors = ["Steven Fackler "] -version = "0.10.1" +version = "0.11.0" license = "MIT" description = "Runtime support for perfect hash function data structures" repository = "https://github.com/sfackler/rust-phf" @@ -22,8 +22,8 @@ unicase = ["phf_macros?/unicase", "phf_shared/unicase"] macros = ["phf_macros"] [dependencies] -phf_macros = { version = "0.10.0", optional = true, path = "../phf_macros" } -phf_shared = { version = "0.10.0", default-features = false, path = "../phf_shared" } +phf_macros = { version = "0.11.0", optional = true, path = "../phf_macros" } +phf_shared = { version = "0.11.0", default-features = false, path = "../phf_shared" } serde = { version = "1.0", optional = true } [package.metadata.docs.rs] diff --git a/phf/examples/unicase-example/Cargo.toml b/phf/examples/unicase-example/Cargo.toml index b264ff5f..656f60ee 100644 --- a/phf/examples/unicase-example/Cargo.toml +++ b/phf/examples/unicase-example/Cargo.toml @@ -7,5 +7,5 @@ rust-version = "1.60" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -phf = { version = "0.10", features = ["macros", "unicase"] } +phf = { version = "0.11", features = ["macros", "unicase"] } unicase = "2" diff --git a/phf/src/lib.rs b/phf/src/lib.rs index 916538b0..d79ab423 100644 --- a/phf/src/lib.rs +++ b/phf/src/lib.rs @@ -18,7 +18,7 @@ //! //!```toml //! [dependencies] -//! phf = { version = "0.10", features = ["macros"] } +//! phf = { version = "0.11", features = ["macros"] } //! ``` //! //! To compile the `phf` crate with a dependency on @@ -28,7 +28,7 @@ //! ```toml //! [dependencies] //! # to use `phf` in `no_std` environments -//! phf = { version = "0.10", default-features = false } +//! phf = { version = "0.11", default-features = false } //! ``` //! //! ## Example (with the `macros` feature enabled) @@ -71,7 +71,7 @@ //! [#183]: https://github.com/rust-phf/rust-phf/issues/183 //! [#196]: https://github.com/rust-phf/rust-phf/issues/196 -#![doc(html_root_url = "https://docs.rs/phf/0.10")] +#![doc(html_root_url = "https://docs.rs/phf/0.11")] #![warn(missing_docs)] #![cfg_attr(not(feature = "std"), no_std)] diff --git a/phf_codegen/Cargo.toml b/phf_codegen/Cargo.toml index 6fa438b8..08f801cd 100644 --- a/phf_codegen/Cargo.toml +++ b/phf_codegen/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "phf_codegen" authors = ["Steven Fackler "] -version = "0.10.0" +version = "0.11.0" license = "MIT" description = "Codegen library for PHF types" repository = "https://github.com/sfackler/rust-phf" @@ -10,5 +10,5 @@ readme = "../README.md" rust-version = "1.60" [dependencies] -phf_generator = "0.10.0" -phf_shared = "0.10.0" +phf_generator = "0.11.0" +phf_shared = "0.11.0" diff --git a/phf_codegen/src/lib.rs b/phf_codegen/src/lib.rs index 275cbf26..be66ff6f 100644 --- a/phf_codegen/src/lib.rs +++ b/phf_codegen/src/lib.rs @@ -128,7 +128,7 @@ //! // ... //! ``` -#![doc(html_root_url = "https://docs.rs/phf_codegen/0.10")] +#![doc(html_root_url = "https://docs.rs/phf_codegen/0.11")] #![allow(clippy::new_without_default)] use phf_shared::{FmtConst, PhfHash}; diff --git a/phf_codegen/test/Cargo.toml b/phf_codegen/test/Cargo.toml index 456d5cb0..eef9cff1 100644 --- a/phf_codegen/test/Cargo.toml +++ b/phf_codegen/test/Cargo.toml @@ -6,11 +6,11 @@ build = "build.rs" edition = "2021" [dependencies] -phf = { version = "0.10", features = ["uncased", "unicase"] } +phf = { version = "0.11", features = ["uncased", "unicase"] } uncased = { version = "0.9.6", default-features = false } unicase = "2.4.0" [build-dependencies] -phf_codegen = { version = "0.10.0", path = ".." } +phf_codegen = { version = "0.11.0", path = ".." } unicase = "2.4.0" uncased = { version = "0.9.6", default-features = false } diff --git a/phf_generator/Cargo.toml b/phf_generator/Cargo.toml index dd0c4a43..1cebf8d8 100644 --- a/phf_generator/Cargo.toml +++ b/phf_generator/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "phf_generator" authors = ["Steven Fackler "] -version = "0.10.0" +version = "0.11.0" license = "MIT" description = "PHF generation logic" repository = "https://github.com/sfackler/rust-phf" @@ -10,7 +10,7 @@ rust-version = "1.60" [dependencies] rand = { version = "0.8", features = ["small_rng"] } -phf_shared = { version = "0.10.0", default-features = false } +phf_shared = { version = "0.11.0", default-features = false } # for stable black_box() criterion = { version = "=0.3.4", optional = true } diff --git a/phf_generator/src/lib.rs b/phf_generator/src/lib.rs index 8b75a36e..4f918896 100644 --- a/phf_generator/src/lib.rs +++ b/phf_generator/src/lib.rs @@ -2,7 +2,7 @@ //! //! [phf]: https://docs.rs/phf -#![doc(html_root_url = "https://docs.rs/phf_generator/0.10")] +#![doc(html_root_url = "https://docs.rs/phf_generator/0.11")] use phf_shared::{HashKey, PhfHash}; use rand::distributions::Standard; use rand::rngs::SmallRng; diff --git a/phf_macros/Cargo.toml b/phf_macros/Cargo.toml index 790d74e9..87116b65 100644 --- a/phf_macros/Cargo.toml +++ b/phf_macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "phf_macros" -version = "0.10.0" +version = "0.11.0" authors = ["Steven Fackler "] edition = "2021" license = "MIT" @@ -22,5 +22,5 @@ quote = "1" proc-macro2 = "1" unicase_ = { package = "unicase", version = "2.4.0", optional = true } -phf_generator = "0.10.0" -phf_shared = { version = "0.10.0", default-features = false } +phf_generator = "0.11.0" +phf_shared = { version = "0.11.0", default-features = false } diff --git a/phf_macros_tests/Cargo.toml b/phf_macros_tests/Cargo.toml index c91209c4..9acdf5bc 100644 --- a/phf_macros_tests/Cargo.toml +++ b/phf_macros_tests/Cargo.toml @@ -11,6 +11,6 @@ rust-version = "1.60" [dev-dependencies] trybuild = "1.0" -phf = { version = "0.10", features = ["macros"] } -phf_macros = { version = "0.10", features = ["unicase"] } +phf = { version = "0.11", features = ["macros"] } +phf_macros = { version = "0.11", features = ["unicase"] } unicase = "2.4.0" diff --git a/phf_shared/Cargo.toml b/phf_shared/Cargo.toml index 9faee488..3563fbd8 100644 --- a/phf_shared/Cargo.toml +++ b/phf_shared/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "phf_shared" authors = ["Steven Fackler "] -version = "0.10.0" +version = "0.11.0" license = "MIT" description = "Support code shared by PHF libraries" repository = "https://github.com/sfackler/rust-phf" diff --git a/phf_shared/src/lib.rs b/phf_shared/src/lib.rs index 37cce318..00ea582e 100644 --- a/phf_shared/src/lib.rs +++ b/phf_shared/src/lib.rs @@ -2,7 +2,7 @@ //! //! [phf]: https://docs.rs/phf -#![doc(html_root_url = "https://docs.rs/phf_shared/0.10")] +#![doc(html_root_url = "https://docs.rs/phf_shared/0.11")] #![cfg_attr(not(feature = "std"), no_std)] #[cfg(feature = "std")]