NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io, #203 most downloaded on crates.io
Runtime support for perfect hash function data structures
Latest stable
0.14.0
Last release 5 months ago
21 Jun 2026
Release timing varies
gaps range from 3 weeks to 1.7 years
Rarely documented
notes for 11 of the last 60 stable releases
3 versions withdrawn
withdrawn after publishing
12 years old
72 releases · first in 2014
Drag across the ruler to compare, or tap a release to open it.
chore: setup cargo-deny by @JohnTitor in #355
fill when resetting generator buffers by @JohnTitor in #402ToTokens by @JohnTitor in #414FmtConst support for Vec/slice keys by @JohnTitor in #416PhfEq to address tuple lifetime issue by @JohnTitor in #420Full Changelog: v0.13.1...v0.14.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
feat: migrate to 2024 edition
update cargo.lock
PhfEq to address tuple lifetime issue<csr-read-only-do-not-edit/>
<csr-read-only-do-not-edit/>
<details><summary>view details</summary>
ef36a8e)4d6f0ab)c628ed4)f2405c9)8125795)2b64a06)PhfEq to address tuple lifetime issue (4ffa9f0)2629d9b)93febde)6661843)cfbb052)1e518a6)6e87a16)a8e8d69)175aae4)4e85433)4bcbfbc)17bce84)1e892e8)e4e1556)03a9306)4ddbefd)ecd6a86)
</details>Full Changelog : v0.13.0...v0.13.1
Full Changelog: v0.13.0...v0.13.1
This version has been yanked as the dependency tree was broken.
This version has been yanked as the dependency tree was broken.
FromIterator for Map by @JohnTitor in #336Full Changelog: v0.12.1...v0.13.0
chore: Fix test by @JohnTitor in #334
Switch from rand to fastrand by @goffrie in #312
unicase::Ascii by @thaliaarchi in #289Full Changelog: phf-v0.11.3...phf-v0.12.0
This version has been yanked as its dependency graph is broken. Please use v0.12.1 instead.
unicase::Ascii by @thaliaarchi in https://github.com/rust-phf/rust-phf/pull/289Full Changelog: https://github.com/rust-phf/rust-phf/compare/phf-v0.11.3...phf-v0.12.0
<csr-id-08e74647f00f7d77cbb81e0cb73ed663798d000f/> <csr-id-08897bd7603c362280ad4f24feca2c99be5e9a98/> <csr-id-51d6baaa6ffce658fb9b56a96affaf0ddd0603e5/>
<csr-read-only-do-not-edit/>
<csr-read-only-do-not-edit/>
<details><summary>view details</summary>
e309f28)51d6baa)08e7464)5c3ad85)08897bd)a6df856)2806801)37a7794)33b8aff)8193820)576dd47)
</details>See also related crates on Git tags!
See also related crates on Git tags!
PhfBorrow<[u8; N]> for &'a [u8; N] by @TGODiamond in #314Full Changelog: phf-v0.11.2...phf-v0.11.3
See also related crates on Git tags!
PhfBorrow<[u8; N]> for &'a [u8; N] by @TGODiamond in https://github.com/rust-phf/rust-phf/pull/314Full Changelog: https://github.com/rust-phf/rust-phf/compare/phf-v0.11.2...phf-v0.11.3
<csr-id-a96a4e29d63fb1ab3cc10e050571e733f5d2d0d1/>
<csr-read-only-do-not-edit/>
<csr-read-only-do-not-edit/>
<details><summary>view details</summary>
e111f4b)dc64dd6)13581f8)695a0df)a96a4e2)4359e17)f89fca4)323366d)1795f7b)6e5dc32)
</details>See also related crates on Git tags!
See also related crates on Git tags!
impl PhfHash for integer slices by @drewkett in https://github.com/rust-phf/rust-phf/pull/273syn to 2.0 by @nickelc in https://github.com/rust-phf/rust-phf/pull/284PHF_STATS by @JohnTitor in https://github.com/rust-phf/rust-phf/pull/288Full Changelog: https://github.com/rust-phf/rust-phf/compare/phf_codegen-v0.11.1...phf-v0.11.2
<csr-read-only-do-not-edit/>
<csr-read-only-do-not-edit/>
<details><summary>view details</summary>
c9c35fd)a1e5072)8fd5b77)PHF_STATS (0b7a826)3776342)8c0d057)f8e9d27)7e212e3)21baa73)1229b2f)
</details>Hide deprecated reexports from docs
phf_mapremove now-unnecessary proc-macro-hack crate usage
Resolves https://github.com/rust-phf/rust-phf/issues/255.
This resolves an issue with Windows Defender identifying proc-macro-hack as threats. It also sheds
a depedency that is no longer necessary, now that the MSRV of this crate is 1.46 and
proc-macro-hack is only useful for providing support for Rust versions 1.31 through 1.45. Per
upstream:
Note: As of Rust 1.45 this crate is superseded by native support for #[proc_macro] in expression position. Only consider using this crate if you care about supporting compilers between 1.31 and 1.45.
<csr-read-only-do-not-edit/>
<details><summary>view details</summary>
Map::new() function and Default implementation to create new, empty map (baac7d0)cargo-smart-release (cb84cf6)proc-macro-hack crate usage (caf1ce7)Map. (b6c682e)phf_map (6be1599)unicase_support to unicase (b47174b)std::borrow::Borrow with PhfBorrow for ordered maps and sets (f43a9cf)std::borrow::Borrow with new PhfBorrow trait (b2f3a9c)[patch.crates-io] section instead of path key (f47515b)core feature to default std feature (645e23d)index documentation (44e495f)index methods to OrderedMap and OrderedSet. (d2af00d)<csr-id-92e7b433a4f62cc9b070cd1d678a6061d0906ee6/>
phf_map<csr-id-caf1ce71aed110fb44206ce2291154572ebfe9b7/> remove now-unnecessary proc-macro-hack crate usage
Resolves https://github.com/rust-phf/rust-phf/issues/255.
This resolves an issue with Windows Defender identifying proc-macro-hack as threats. It also sheds
a depedency that is no longer necessary, now that the MSRV of this crate is 1.46 and
proc-macro-hack is only useful for providing support for Rust versions 1.31 through 1.45. Per
upstream:
Note: As of Rust 1.45 this crate is superseded by native support for #[proc_macro] in expression position. Only consider using this crate if you care about supporting compilers between 1.31 and 1.45.
<csr-read-only-do-not-edit/>
<csr-read-only-do-not-edit/>
<details><summary>view details</summary>
Map::new() function and Default implementation to create new, empty map (baac7d0)3897b21)97f997d)cargo-smart-release (cb84cf6)1407ebe)32a72c3)1af3b0f)c0b9ef9)d2efdc0)36ec885)b9d25da)a85f070)proc-macro-hack crate usage (caf1ce7)92e7b43)22570b8)71fd47c)2e1167c)11bb242)bed0153)4cc8344)a43e0e1)Map. (b6c682e)815c17c)phf_map (6be1599)da98b9e)6941e82)d8cfc43)eba4cc2)d9b5ff2)3ea14b2)588ac25)d527f9d)9b71978)012be08)e47e4dc)65deaf7)99d3533)f474922)c746106)8868d08)50f8a0d)63886f6)307969f)2ca46c4)a9e4b0a)76f9072)dd86c6c)9adc370)ddecc3a)ff77659)unicase_support to unicase (b47174b)8b44f0c)2a6087f)6ec8afb)std::borrow::Borrow with PhfBorrow for ordered maps and sets (f43a9cf)3c087d4)std::borrow::Borrow with new PhfBorrow trait (b2f3a9c)9ae1678)0ab0108)a47ac36)[patch.crates-io] section instead of path key (f47515b)caec346)8dce12c)a285906)db4ce56)81c7cc5)4060288)0d00821)8ae2bb8)a932094)core feature to default std feature (645e23d)70129c6)9b70bd9)ae649cd)4fc0d1a)cd0d7ce)27f7c2c)9ff66ab)2d3176b)83fd51c)1287414)364ed47)e3a7442)588fd1a)a050b6f)ab88405)6c7e2d9)8d23b15)61142c5)f631f50)ea7e256)81a4806)0a98dd1)ecab54b)dfa970b)3f71765)5f08563)e073dd2)21ecf72)839f06d)6f5575c)8bf29c1)b4ec398)6bbc9e2)20f896e)7c692d4)ea8dd65)fee66fc)909fac5)d761144)888f623)0cc3844)d9351e1)b582e4e)4769a6d)5659a9d)2f0a5de)9b75ee5)ae5ee38)index documentation (44e495f)87ffab8)7260d04)a004227)1579bec)25cea13)c43154b)2c67ce5)87206e1)b7d29df)cd33902)8bc23a0)aad0b9b)dccff69)2d988b7)c9e7a93)58e2223)776046c)2ea7d5c)5bcd5c9)751c94b)fd71c31)70f2ed9)44006f7)7c3f757)1f770df)bb65b8c)fda44f5)269b5dc)7c093e8)c7c0d3c)6f59718)d3b2ea0)96ef156)77ea239)6bd5a93)98183e1)642b69d)0cc37b2)index methods to OrderedMap and OrderedSet. (d2af00d)9cb9de9)555a690)e215273)0b68ea5)5810d30)7e32f39)7f0392a)7d74f1f)36efc72)eabadcf)271ccc2)ede14df)cf64ebb)4fdb533)4d28684)59ca586)e1e6d3b)fc45373)8eca797)40dbc32)d4c189a)822f4e3)f014882)cd637ca)ee54b59)cbd9a41)044f690)fbbb530)bfc36c9)b09a174)9bd8705)271e784)3db7cef)e1c53fc)f8ef160)6866c1b)b0c5e3c)d9ddf45)2f63ded)24555b1)ca0e9f6)69ca376)f7fb510)81b54b2)09d6870)c50d107)28af2aa)39e098a)384ead4)8683be2)c5a4f31)79772f4)88700a2)5135f02)28cbe70)0b22188)bb858f1)668f986)d83f551)c3ae5ac)360bf81)ab4786c)6963a16)f678635)2b4863f)4f5902c)3c36bfb)69d92b8)b9f0a43)4a0d48d)0fba837)49dbb36)fc2539f)0a80b06)d96a1e5)9103fc5)fc4829a)e26947c)4546f51)98dde65)14627f5)43d9a50)d20c311)4ad2bb2)6a7cc6e)6e3a54d)ff7dad4)2f3c605)cc0d031)bf62eb8)f6ce09a)aec5aab)88d54c2)7ced000)88abf6c)af2dd53)f585e4c)b697d13)d120067)5752604)8f5c0f0)eadea0b)de193c7)f17bae1)b2416db)7fc934a)719de47)b44065b)83a8116)dd3d0f1)15cc179)49647cd)2fe6940)bd10658)a1b5030)4bf6f82)35701e2)68458d3)3c2661d)85a3b28)2f75f5f)d7ae880)b16d440)af0a11c)92ec57a)20dea1d)d6e5d77)13b9389)2a650ef)9c4d247)b2220d9)3ab5bd1)f79814a)c9ca9b1)61eea75)20a1e83)3995dbc)95f3c90)25aeba6)6372fa4)6718b60)19c4f8d)a8bb815)4b48972)55ededf)789990e)6bfb12b)f6ce641)cb4ed93)a0ab8d7)4ff3544)
</details>Implement PhfHash for integral arrays of any size. by @turbocool3r in https://github.com/rust-phf/rust-phf/pull/247
Map::new() function and Default implementation to create new, empty map by @msrd0 in https://github.com/rust-phf/rust-phf/pull/249actions/checkout to v3 by @JohnTitor in https://github.com/rust-phf/rust-phf/pull/253proc-macro-hack crate usage by @ErichDonGubler in https://github.com/rust-phf/rust-phf/pull/256Full Changelog: https://github.com/rust-phf/rust-phf/compare/v0.10.1...v0.11.0
See the changelog for details.
See the changelog for details.
See the changelog for details.
This version has been yanked, use 0.10.0 instead.
This version has been yanked, use 0.10.0 instead.
See the changelog for details.
Yanked except for phf-generator, use 0.10.0 instead.
criterion version to keep MSRVlen and is_empty ([#224]) (yanked)Clone, Debug, and FusedIterator ([#226]) (yanked)See the changelog for details.
See the changelog for details.
rand dependency has been upgraded to 0.8no_stdunicase feature for phf_macrosString type for phf dynamic code generationOrderedMap and OrderedSetPhfBorrow trait instead of std::borrow::Borrow(breaking change) The core features of phf and phf_shared have been changed to std default-features.
phf_macros now works on stable.core features of phf and phf_shared have been changed to std default-features.phf_codegen can be used with formatting macros via their Display impls and the build() methods no longer take &mut Write.OrderedMap and OrderedSet types and the phf_builder crate have been removed due to lack of use.unicase dependency has been upgraded to 2.4.0Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.