[package]
edition = "2024"
rust-version = "1.90"
name = "shardmap"
version = "0.1.0"
authors = ["Devon Tietjen <devon@eden.dev>"]
build = false
include = [
"Cargo.toml",
"LICENSE",
"README.md",
"SAFETY.md",
"examples/**",
"shardcache.toml.example",
"src/**",
"tests/**",
"fuzz/support/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Sharded embedded in-memory map with optional cache, protocol, and server internals"
homepage = "https://github.com/d-tietjen/shard-kv"
documentation = "https://docs.rs/shardmap"
readme = "README.md"
keywords = [
"cache",
"map",
"kv",
"storage",
"sharded",
]
categories = [
"caching",
"data-structures",
"database-implementations",
]
license = "Apache-2.0"
repository = "https://github.com/d-tietjen/shard-kv"
[features]
cuda = ["sharded"]
default = ["sharded"]
embedded = []
embedded-read-biased-lock = []
experimental-no-ttl-point-hot-path = ["no-ttl"]
monoio = [
"server",
"dep:monoio",
"bytes-handoff?/monoio",
]
mutable-value-slices = []
no-ttl = []
prefix-eviction = []
redis = ["embedded"]
redis-server = [
"server",
"redis",
]
server = [
"sharded",
"dep:bytes-handoff",
"dep:clap",
"dep:flume",
"dep:socket2",
"dep:tracing-subscriber",
]
sharded = ["embedded"]
shared-parking-lot-lock = []
telemetry = ["embedded"]
unsafe = []
[lib]
name = "shardmap"
path = "src/lib.rs"
[[example]]
name = "basic_map"
path = "examples/basic_map.rs"
[[example]]
name = "configured_cache"
path = "examples/configured_cache.rs"
[[example]]
name = "entry_api"
path = "examples/entry_api.rs"
[[example]]
name = "mini_feature_flags"
path = "examples/mini_feature_flags.rs"
[[example]]
name = "prepared_keys_threads"
path = "examples/prepared_keys_threads.rs"
[[example]]
name = "route_inspection"
path = "examples/route_inspection.rs"
[[example]]
name = "semantic_cache"
path = "examples/semantic_cache.rs"
[[example]]
name = "semantic_ttl"
path = "examples/semantic_ttl.rs"
[[example]]
name = "ttl_and_locks"
path = "examples/ttl_and_locks.rs"
[[test]]
name = "redis_tier1_coverage_test"
path = "tests/redis_tier1_coverage_test.rs"
[[test]]
name = "protocol_test"
path = "tests/protocol_test.rs"
[[test]]
name = "fuzz_harness_test"
path = "tests/fuzz_harness_test.rs"
required-features = ["redis"]
[[test]]
name = "redis_compat_differential_test"
path = "tests/redis_compat_differential_test.rs"
required-features = ["redis-server"]
[dependencies.bytes]
version = "1"
[dependencies.bytes-handoff]
version = "1.2.0"
optional = true
[dependencies.clap]
version = "4.5"
features = ["derive"]
optional = true
[dependencies.core_affinity]
version = "0.8"
[dependencies.crc32fast]
version = "1.4"
[dependencies.crossbeam-channel]
version = "0.5"
[dependencies.crossbeam-utils]
version = "0.8"
[dependencies.fast-telemetry]
version = "0.4"
[dependencies.flume]
version = "0.11"
features = ["async"]
optional = true
default-features = false
[dependencies.hashbrown]
version = "0.14"
[dependencies.indextreemap]
version = "0.2.0"
default-features = false
[dependencies.itoa]
version = "1"
[dependencies.libc]
version = "0.2"
[dependencies.log]
version = "0.4"
[dependencies.lz4_flex]
version = "0.11"
[dependencies.memchr]
version = "2"
[dependencies.parking_lot]
version = "0.12"
[dependencies.rblock]
version = "0.1.0"
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.smallvec]
version = "1"
[dependencies.socket2]
version = "0.5"
features = ["all"]
optional = true
[dependencies.thiserror]
version = "2.0"
[dependencies.tokio]
version = "1.48"
features = [
"io-util",
"macros",
"net",
"rt-multi-thread",
"signal",
"sync",
"time",
]
[dependencies.toml]
version = "0.9"
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-subscriber]
version = "0.3"
features = [
"env-filter",
"fmt",
]
optional = true
[dependencies.xxhash-rust]
version = "0.8"
features = ["xxh3"]
[dependencies.zstd]
version = "0.13"
[dev-dependencies.tempfile]
version = "3.15"
[target."cfg(creusot)".dependencies.creusot-std]
version = "0.11.0"
[target.'cfg(target_os = "linux")'.dependencies.monoio]
version = "0.2"
optional = true
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(creusot)"]