40e60cefd6
Big diff, but it’s mostly just whitespace changes; ignore whitespace and it’s much smaller, though still not as tiny as it could potentially be. Essentially, this just duplicates everything for the hashbrown variant. It’d be possible to use generic associated types to achieve this without the duplication, but that depends on currently-unstable features, and is probably slightly more painful to use anyway. I’ll keep the approach in mind for a possible version 2, but for now this is the pragmatic route.
24 lines
870 B
TOML
24 lines
870 B
TOML
[package]
|
|
name = "anymap"
|
|
version = "1.0.0-beta.1"
|
|
authors = ["Chris Morgan <rust@chrismorgan.info>"]
|
|
edition = "2018"
|
|
rust-version = "1.36"
|
|
description = "A safe and convenient store for one value of each type"
|
|
repository = "https://github.com/chris-morgan/anymap"
|
|
keywords = ["container", "any", "map"]
|
|
categories = ["rust-patterns", "data-structures", "no-std"]
|
|
license = "BlueOak-1.0.0 OR MIT OR Apache-2.0"
|
|
include = ["/README.md", "/COPYING", "/CHANGELOG.md", "/src"]
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
|
|
[features]
|
|
default = ["std"]
|
|
std = []
|
|
|
|
[dependencies]
|
|
# The hashbrown feature, disabled by default, is exposed under different stability guarantees than the usual SemVer ones: by preference the version range will only be extended, but it may be shrunk in a MINOR release. See README.md.
|
|
hashbrown = { version = ">=0.1.1, <0.13", optional = true }
|