[package]
edition = "2024"
name = "starshard"
version = "0.7.0"
authors = ["houseme <housemecn@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A blazing-fast sharded concurrent HashMap using hashbrown and RwLock, with lazy shards, atomic length cache, and async support."
homepage = "https://houseme.github.io/starshard"
documentation = "https://docs.rs/starshard"
readme = "README.md"
keywords = [
"concurrency",
"hashmap",
"hashbrown",
"rwlock",
"async",
]
categories = [
"concurrency",
"data-structures",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/houseme/starshard"
resolver = "3"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
async = ["dep:tokio"]
default = ["rayon"]
full = [
"async",
"rayon",
"serde",
]
rayon = [
"dep:rayon",
"hashbrown/rayon",
]
serde = [
"dep:serde",
"hashbrown/serde",
]
[lib]
name = "starshard"
path = "src/lib.rs"
[dependencies.hashbrown]
version = "0.16"
default-features = false
[dependencies.rayon]
version = "1.11"
optional = true
[dependencies.rustc-hash]
version = "2.1"
[dependencies.serde]
version = "1.0.228"
features = ["derive"]
optional = true
[dependencies.tokio]
version = "1.49"
features = [
"sync",
"rt-multi-thread",
]
optional = true
default-features = false
[dev-dependencies.serde_json]
version = "1"
[dev-dependencies.tokio]
version = "1.49"
features = [
"macros",
"rt-multi-thread",
]