[package]
name = "hashbrown"
version = "0.1.8"
authors = ["Amanieu d'Antras <amanieu@gmail.com>"]
description = "A Rust port of Google's SwissTable hash map"
license = "Apache-2.0/MIT"
repository = "https://github.com/Amanieu/hashbrown"
readme = "README.md"
keywords = ["hash", "no_std", "hashmap", "swisstable"]
categories = ["data-structures", "no-std"]
exclude = [".travis.yml", "bors.toml"]

[dependencies]
byteorder = { version = "1.0", default-features = false }
scopeguard = { version = "0.3", default-features = false }

# For external trait impls
rayon = { version = "1.0", optional = true }
serde = { version = "1.0", default-features = false, optional = true }

[dev-dependencies]
lazy_static = "~1.2"
rand = "0.5.1"
rayon = "1.0"
rustc-hash = "1.0"
serde_test = "1.0"

[features]
nightly = []

[package]
name = "hashbrown"
version = "0.1.8"
authors = ["Amanieu d'Antras <amanieu@gmail.com>"]
description = "A Rust port of Google's SwissTable hash map"
license = "Apache-2.0/MIT"
repository = "https://github.com/Amanieu/hashbrown"
readme = "README.md"
keywords = ["hash", "no_std", "hashmap", "swisstable"]
categories = ["data-structures", "no-std"]
exclude = [".travis.yml", "bors.toml"]

[dependencies]
byteorder = { version = "1.0", default-features = false }
scopeguard = { version = "0.3", default-features = false }

# For external trait impls
rayon = { version = "1.0", optional = true }
serde = { version = "1.0.25", default-features = false, optional = true }

[dev-dependencies]
lazy_static = "~1.2"
rand = "0.5.1"
rayon = "1.0"
rustc-hash = "1.0"
serde_test = "1.0"

[features]
nightly = []

Fix cargo build with minimal-versions
Fix cargo build with minimal-versions

For serde versions prior to 1.0.25, hashbrown built with serde feature will result in an error:

```
error[E0407]: method `deserialize_in_place` is not a member of trait `Deserialize`
   --> src/external_trait_impls/serde.rs:164:9
    |
164 | /         fn deserialize_in_place<D>(deserializer: D, place: &mut Self) -> Result<(), D::Error>
165 | |         where
166 | |             D: Deserializer<'de>,
167 | |         {
...   |
197 | |             deserializer.deserialize_seq(SeqInPlaceVisitor(place))
198 | |         }
    | |_________^ not a member of trait `Deserialize`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0407`.
error: Could not compile `hashbrown`.
```

Change serde version to 1.0.25 explicitly will fix build with `cargo -Z minimal-versions build --features serde`