Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.11.0 #258

Merged
merged 1 commit into from Jul 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 10 additions & 1 deletion CHANGELOG.md
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -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
Expand Down Expand Up @@ -60,7 +60,7 @@ pub fn parse_keyword(keyword: &str) -> Option<Keyword> {

```toml
[dependencies]
phf = { version = "0.10", features = ["macros"] }
phf = { version = "0.11", features = ["macros"] }
```

#### Note
Expand Down
6 changes: 3 additions & 3 deletions phf/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "phf"
authors = ["Steven Fackler <sfackler@gmail.com>"]
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"
Expand All @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion phf/examples/unicase-example/Cargo.toml
Expand Up @@ -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"
6 changes: 3 additions & 3 deletions phf/src/lib.rs
Expand Up @@ -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
Expand All @@ -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)
Expand Down Expand Up @@ -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)]

Expand Down
6 changes: 3 additions & 3 deletions phf_codegen/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "phf_codegen"
authors = ["Steven Fackler <sfackler@gmail.com>"]
version = "0.10.0"
version = "0.11.0"
license = "MIT"
description = "Codegen library for PHF types"
repository = "https://github.com/sfackler/rust-phf"
Expand All @@ -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"
2 changes: 1 addition & 1 deletion phf_codegen/src/lib.rs
Expand Up @@ -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};
Expand Down
4 changes: 2 additions & 2 deletions phf_codegen/test/Cargo.toml
Expand Up @@ -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 }
4 changes: 2 additions & 2 deletions phf_generator/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "phf_generator"
authors = ["Steven Fackler <sfackler@gmail.com>"]
version = "0.10.0"
version = "0.11.0"
license = "MIT"
description = "PHF generation logic"
repository = "https://github.com/sfackler/rust-phf"
Expand All @@ -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 }

Expand Down
2 changes: 1 addition & 1 deletion phf_generator/src/lib.rs
Expand Up @@ -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;
Expand Down
6 changes: 3 additions & 3 deletions phf_macros/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "phf_macros"
version = "0.10.0"
version = "0.11.0"
authors = ["Steven Fackler <sfackler@gmail.com>"]
edition = "2021"
license = "MIT"
Expand All @@ -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 }
4 changes: 2 additions & 2 deletions phf_macros_tests/Cargo.toml
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion phf_shared/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "phf_shared"
authors = ["Steven Fackler <sfackler@gmail.com>"]
version = "0.10.0"
version = "0.11.0"
license = "MIT"
description = "Support code shared by PHF libraries"
repository = "https://github.com/sfackler/rust-phf"
Expand Down
2 changes: 1 addition & 1 deletion phf_shared/src/lib.rs
Expand Up @@ -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")]
Expand Down