# 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.85"
name = "mldsa65"
version = "0.2.2"
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "ML-DSA-65 (FIPS 204) digital signatures with WASM bindings"
readme = "README.md"
keywords = [
    "crypto",
    "signature",
    "post-quantum",
    "wasm",
    "wasm-bindgen",
]
categories = [
    "cryptography",
    "wasm",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/UneBaguette/mldsa.wasm"

[features]
default = []
talc = ["dep:talc"]
wasm = [
    "dep:wasm-bindgen",
    "dep:serde-wasm-bindgen",
    "dep:tsify",
    "dep:base64",
    "dep:zeroize",
    "mldsa-core/wasm",
]

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

[dependencies.base64]
version = "0.22"
optional = true

[dependencies.ml-dsa]
version = "0.1.0"
features = [
    "zeroize",
    "rand_core",
]

[dependencies.mldsa-core]
version = "0.2"

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

[dependencies.tsify]
version = "0.5"
features = ["js"]
optional = true

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

[dependencies.zeroize]
version = "1"
optional = true

[dev-dependencies.wasm-bindgen-test]
version = "0.3"

[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom]
version = "0.4"
features = ["wasm_js"]

[target.'cfg(target_family = "wasm")'.dependencies.talc]
version = "5"
optional = true
