lib-q-core 0.0.5

Core types and traits for lib-Q post-quantum cryptography library
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 = "2024"
rust-version = "1.96.0"
name = "lib-q-core"
version = "0.0.5"
authors = [
    "Enkom Tech",
    "Nexlab-One",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core types and traits for lib-Q post-quantum cryptography library"
homepage = "https://github.com/Enkom-Tech/libQ"
readme = "README.md"
keywords = [
    "cryptography",
    "post-quantum",
    "security",
    "core",
    "nist",
]
categories = [
    "cryptography",
    "wasm",
]
license = "Apache-2.0"
repository = "https://github.com/Enkom-Tech/libQ"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[package.metadata.wasm-pack.profile.release]
wasm-opt = [
    "-Oz",
    "--enable-bulk-memory",
]

[features]
alloc = []
default = ["std"]
fn-dsa = []
getrandom = ["dep:getrandom"]
hash = []
ml-dsa = []
ml-kem = []
no_std = [
    "spin",
    "no_std_panic_handler",
]
no_std_panic_handler = []
rand = ["dep:rand"]
relaxed_entropy_validation = []
saturnin = []
serde = [
    "dep:serde",
    "lib-q-types/serde",
]
slh-dsa = []
std = [
    "getrandom",
    "alloc",
    "rand",
    "once_cell",
    "once_cell/std",
]
wasm = [
    "wasm-bindgen",
    "js-sys",
    "serde",
    "serde-wasm-bindgen",
    "serde_json",
    "wasm_getrandom",
    "alloc",
    "lib-q-types/wasm",
]
wasm_getrandom = [
    "getrandom",
    "getrandom/wasm_js",
]

[lib]
name = "lib_q_core"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

[[test]]
name = "coverage_tests"
path = "tests/coverage_tests.rs"

[[test]]
name = "modular_architecture_tests"
path = "tests/modular_architecture_tests.rs"

[dependencies.getrandom]
version = "0.4.2"
optional = true
default-features = false

[dependencies.js-sys]
version = "0.3.99"
optional = true

[dependencies.lib-q-types]
version = "0.0.5"
default-features = false

[dependencies.once_cell]
version = "1.21.4"
optional = true
default-features = false

[dependencies.rand]
version = "0.10.1"
features = ["thread_rng"]
optional = true
default-features = false

[dependencies.rand_core]
version = "0.10.1"
default-features = false

[dependencies.serde]
version = "1.0.228"
features = ["derive"]
optional = true
default-features = false

[dependencies.serde-wasm-bindgen]
version = "0.6.5"
optional = true

[dependencies.serde_json]
version = "1.0.150"
optional = true
default-features = false

[dependencies.spin]
version = "0.12.0"
optional = true

[dependencies.subtle]
version = "2.6.1"
default-features = false

[dependencies.wasm-bindgen]
version = "0.2.122"
features = ["serde-serialize"]
optional = true

[dependencies.zeroize]
version = "1.8.2"
features = [
    "derive",
    "alloc",
]
default-features = false

[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies.getrandom]
version = "0.4.2"
features = ["wasm_js"]
default-features = false

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    "cfg(hax)",
    "cfg(eurydice)",
    "cfg(doc_cfg)",
    "cfg(simd128)",
    "cfg(simd256)",
    "cfg(aarch64)",
    "cfg(x86_64)",
]