feat: support hashbrown015

This commit is contained in:
Aleksandr 2025-02-15 23:01:42 +03:00
parent 52a67fff57
commit cd26406fa9
3 changed files with 16 additions and 1 deletions

12
Cargo.lock generated
View file

@ -372,6 +372,15 @@ version = "0.14.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1"
[[package]]
name = "hashbrown"
version = "0.15.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bf151400ff0baff5465007dd2f3e717f3fe502074ca563069ce3a6629d07b289"
dependencies = [
"serde",
]
[[package]]
name = "ident_case"
version = "1.0.1"
@ -395,7 +404,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "68b900aa2f7301e21c36462b170ee99994de34dff39a4a6a528e80e7376d07e5"
dependencies = [
"equivalent",
"hashbrown",
"hashbrown 0.14.5",
"serde",
]
@ -796,6 +805,7 @@ dependencies = [
"dyn-clone",
"either",
"garde",
"hashbrown 0.15.2",
"indexmap",
"jsonschema",
"pretty_assertions",

View file

@ -20,6 +20,7 @@ dyn-clone = "1.0"
ref-cast = "1.0.22"
# optional dependencies
hashbrown015 = { version = "0.15", default-features = false, optional = true, package = "hashbrown" }
arrayvec07 = { version = "0.7", default-features = false, optional = true, package = "arrayvec" }
bigdecimal04 = { version = "0.4", default-features = false, optional = true, package = "bigdecimal" }
bytes1 = { version = "1.0", default-features = false, optional = true, package = "bytes" }
@ -46,6 +47,7 @@ garde = { git = "https://github.com/jprochazk/garde.git", rev = "be00ddddf8de145
validator = { version = "0.18.1", features = ["derive"] }
regex = { version = "1.10.6", default-features = false }
hashbrown015 = { version = "0.15", default-features = false, features = ["serde"], package = "hashbrown" }
arrayvec07 = { version = "0.7", default-features = false, features = ["serde"], package = "arrayvec"}
bigdecimal04 = { version = "0.4", default-features = false, features = ["serde"], package = "bigdecimal" }
bytes1 = { version = "1.0", default-features = false, features = ["serde"], package = "bytes" }

View file

@ -86,6 +86,9 @@ forward_impl!(smol_str02::SmolStr => alloc::string::String);
#[cfg(feature = "compact_str08")]
forward_impl!(compact_str08::CompactString => alloc::string::String);
#[cfg(feature = "hashbrown015")]
forward_impl!((<K: crate::JsonSchema, V: crate::JsonSchema> crate::JsonSchema for hashbrown015::HashMap<K, V>) => std::collections::HashMap<K, V>);
#[cfg(feature = "url2")]
mod url2;