Cargo Features
[dependencies]
hashish = { version = "0.0.1", default-features = false, features = ["rustc-internal-api", "raw-entry", "default-hasher", "inline-more", "allocator-api2", "equivalent"] }
- default = allocator-api2, default-hasher, equivalent, inline-more, raw-entry
-
These default features are set whenever
hashish
is added without
somewhere in the dependency tree.default-features = false - rustc-internal-api
-
Enables the RustcEntry API used to provide the standard library's Entry API.
- raw-entry default
-
Enables the deprecated RawEntry API.
- default-hasher default
-
Provides a default hasher. Currently, this is foldhash but this is subject to change in the future. Note that the default hasher does *not* provide HashDoS resistance, unlike the one in the standard library.
Enables foldhash
For the default hasher
Affects
hashish::DefaultHashBuilder
… - inline-more default
-
Enables usage of
#[inline]
on far more functions than by default in this crate. This may lead to a performance increase but often comes at a compile time cost.
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.
- allocator-api2 default
-
Enables allocator-api2
Support for allocators that use allocator-api2
- equivalent default
-
Enables equivalent
Equivalent trait which can be shared with other hash table implementations.