[package]
edition = "2024"
name = "starshard"
version = "1.0.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, async support, conditional operations, batch operations, TTL/metrics/transactions."
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]
advanced-iter = []
async = [
"dep:tokio",
"dep:async-trait",
]
batch = []
cas = []
cow-snapshot = []
default = ["rayon"]
diagnostics = []
full = [
"async",
"rayon",
"serde",
"batch",
"ttl",
"metrics",
"advanced-iter",
"transactions",
"cas",
"cow-snapshot",
"replication",
"diagnostics",
]
metrics = []
rayon = [
"dep:rayon",
"hashbrown/rayon",
]
replication = ["dep:async-trait"]
serde = [
"dep:serde",
"hashbrown/serde",
]
transactions = []
ttl = []
[lib]
name = "starshard"
path = "src/lib.rs"
[[example]]
name = "v080_async_batch"
path = "examples/v080_async_batch.rs"
[[example]]
name = "v080_entry_api"
path = "examples/v080_entry_api.rs"
[dependencies.async-trait]
version = "0.1"
optional = true
[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.async-trait]
version = "0.1"
[dev-dependencies.serde_json]
version = "1"
[dev-dependencies.tokio]
version = "1.49"
features = [
"macros",
"rt-multi-thread",
]