# 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 = "oqs-safe"
version = "0.4.1"
authors = ["Orlando Trajano <orlychikka@gmail.com>"]
build = "build.rs"
include = [
    "src/**",
    "examples/**",
    "tests/**",
    "Cargo.toml",
    "Cargo.lock",
    "build.rs",
    "README.md",
    "CHANGELOG.md",
    "SECURITY.md",
    "LICENSE-MIT",
    "LICENSE-APACHE",
    ".github/workflows/ci.yml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Safe Rust wrapper over libOQS for ML-KEM and ML-DSA with mock fallback."
documentation = "https://docs.rs/oqs-safe"
readme = "README.md"
keywords = [
    "post-quantum",
    "pqc",
    "ml-kem",
    "ml-dsa",
    "liboqs",
]
categories = [
    "cryptography",
    "api-bindings",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/0rlych1kk4/oqs-safe-0"

[package.metadata.docs.rs]
features = [
    "ml_kem_512",
    "ml_kem_768",
    "ml_kem_1024",
    "ml_dsa_44",
    "ml_dsa_65",
    "ml_dsa_87",
]
no-default-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = []
dilithium2 = []
dilithium3 = []
dilithium5 = []
kyber1024 = []
kyber512 = []
kyber768 = []
liboqs = []
ml_dsa_44 = ["dilithium2"]
ml_dsa_65 = ["dilithium3"]
ml_dsa_87 = ["dilithium5"]
ml_kem_1024 = ["kyber1024"]
ml_kem_512 = ["kyber512"]
ml_kem_768 = ["kyber768"]

[lib]
name = "oqs_safe"
path = "src/lib.rs"

[[example]]
name = "dsa_sign_verify"
path = "examples/dsa_sign_verify.rs"

[[example]]
name = "hkdf_handshake"
path = "examples/hkdf_handshake.rs"

[[example]]
name = "hybrid_x25519_mlkem"
path = "examples/hybrid_x25519_mlkem.rs"

[[example]]
name = "kem_roundtrip"
path = "examples/kem_roundtrip.rs"

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

[dependencies.getrandom]
version = "0.2"

[dependencies.hkdf]
version = "0.12"

[dependencies.rand_core]
version = "0.6"
features = ["getrandom"]

[dependencies.sha2]
version = "0.10"

[dependencies.subtle]
version = "2"

[dependencies.x25519-dalek]
version = "2"
features = ["static_secrets"]

[dependencies.zeroize]
version = "1"
features = ["derive"]

[dev-dependencies.hex]
version = "0.4"

[dev-dependencies.rand]
version = "0.8"

[build-dependencies.cc]
version = "1"

[build-dependencies.pkg-config]
version = "0.3"
