[package]
edition = "2024"
rust-version = "1.96.0"
name = "lib-q-ring"
version = "0.0.5"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Shared ring arithmetic (R_q = Z_q[X]/(X^n+1)) for FIPS 204 lattice primitives"
readme = "README.md"
keywords = [
"cryptography",
"post-quantum",
"lattice",
"ml-dsa",
"no-std",
]
categories = [
"cryptography",
"no-std",
]
license = "Apache-2.0"
[package.metadata.wasm-pack.profile.release]
wasm-opt = [
"-Oz",
"--enable-bulk-memory",
]
[features]
alloc = ["lib-q-sha3/alloc"]
default = ["std"]
no_std = [
"alloc",
"no_std_panic_handler",
]
no_std_panic_handler = []
std = ["alloc"]
wasm = [
"alloc",
"dep:wasm-bindgen",
"dep:lib-q-core",
"lib-q-core/wasm",
"lib-q-core/alloc",
]
[lib]
name = "lib_q_ring"
crate-type = [
"cdylib",
"rlib",
]
path = "src/lib.rs"
[[test]]
name = "wasm_smoke"
path = "tests/wasm_smoke.rs"
[dependencies.lib-q-core]
version = "0.0.5"
optional = true
default-features = false
[dependencies.lib-q-sha3]
version = "0.0.5"
default-features = false
[dependencies.rand_core]
version = "0.10.1"
default-features = false
[dependencies.subtle]
version = "2.6.1"
default-features = false
[dependencies.wasm-bindgen]
version = "0.2.122"
optional = true
[dependencies.zeroize]
version = "1.8.2"
features = [
"derive",
"alloc",
]
default-features = false
[dev-dependencies.wasm-bindgen-test]
version = "0.3.72"
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.hex]
version = "0.4.3"
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.proptest]
version = "1.11.0"
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.rand_core]
version = "0.10.1"
default-features = false
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(tarpaulin)"]