Cargo Features

[dependencies]
cityhasher = { version = "0.1.0", default-features = false, features = ["disable-bounds-checking", "std"] }
default = disable-bounds-checking, std

These default features are set whenever cityhasher is added without default-features = false somewhere in the dependency tree.

disable-bounds-checking default

When this feature is enabled, unsafe code is used to access the data that is being hashed. Assuming there are no bugs in the algorithm, this is completely safe to do. This does not alter any other behavior of the algorithm. This crate passes the same test suite that the original library utilizes regardless of whether this feature is enabled.

std default

Affects cityhasher::HashMap, cityhasher::HashSet