[package]
name = "cipherstash-core"
description = "Shared code and core modules for CipherStash clients"
version = "0.34.1-alpha.6"
license-file = "LICENSE"
documentation = "https://docs.rs/cipherstash-core"
edition.workspace = true
repository.workspace = true
homepage.workspace = true
keywords.workspace = true
categories.workspace = true

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
hmac = { workspace = true }
lazy_static = { workspace = true }
thiserror = { workspace = true }


num-bigint = "0.4"
rand = "0.8.5"
regex = "1"
sha2 = "0.10.5"

# Route `getrandom` to the browser/Deno crypto API on wasm32. Pulled in
# transitively via `rand 0.8` -> `getrandom 0.2`.
[target.'cfg(target_arch = "wasm32")'.dependencies]
getrandom = { version = "0.2", features = ["js"] }

[dev-dependencies]
serde = { workspace = true }
serde_json = { workspace = true }
paste = "1.0.9"
hex-literal = "0.3.4"
