[package]
edition = "2021"
name = "flash-map"
version = "0.2.0"
authors = ["Naman Bajpai"]
build = false
exclude = [
"target/",
".git/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "GPU-native concurrent hash map with bulk-only API. SoA layout, CUDA kernels, CPU fallback. Designed for blockchain state, HFT, and batch-parallel workloads."
homepage = "https://github.com/bajpainaman/flash-map"
readme = "README.md"
keywords = [
"gpu",
"cuda",
"hashmap",
"high-performance",
"concurrent",
]
categories = [
"data-structures",
"concurrency",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/bajpainaman/flash-map"
[features]
cpu-fallback = []
cuda = ["dep:cudarc"]
default = ["cpu-fallback"]
rayon = ["dep:rayon"]
tokio = ["dep:tokio"]
[lib]
name = "flash_map"
path = "src/lib.rs"
[[example]]
name = "blockchain_state"
path = "examples/blockchain_state.rs"
[[example]]
name = "dedup"
path = "examples/dedup.rs"
[[test]]
name = "correctness"
path = "tests/correctness.rs"
[[bench]]
name = "throughput"
path = "benches/throughput.rs"
harness = false
[dependencies.bytemuck]
version = "1.14"
features = ["derive"]
[dependencies.cudarc]
version = "0.12"
features = ["cuda-12000"]
optional = true
[dependencies.rayon]
version = "1.10"
optional = true
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = ["rt"]
optional = true
[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
[dev-dependencies.rand]
version = "0.8"
[profile.release]
opt-level = 3
lto = true
codegen-units = 1