flash-map 0.1.1

GPU-native concurrent hash map with bulk-only API. SoA layout, CUDA kernels, CPU fallback. Designed for blockchain state, HFT, and batch-parallel workloads.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "flash-map"
version = "0.1.1"
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