authnz-common 0.2.4

Authnz common library (types and utils).
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"
name = "authnz-common"
version = "0.2.4"
authors = ["Klimenty Titov <aclo.create@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Authnz common library (types and utils)."
readme = false
license-file = "LICENSE"
resolver = "2"

[features]
app-client-types = []
app-server-types = [
    "dep:impulse-server-kit",
    "dep:serde_json",
]
authnz-server-types = ["dep:impulse-server-kit"]
authnz-utils = ["dep:impulse-server-kit"]
crypt-utils = ["dep:chacha20poly1305"]
default = [
    "authnz-server-types",
    "authnz-utils",
    "app-server-types",
    "app-client-types",
    "pqc-utils",
    "ed25519-utils",
    "crypt-utils",
]
ed25519-utils = ["dep:ed25519-dalek"]
pqc-utils = ["dep:authnz-pqc-dilithium"]

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

[dependencies.authnz-totp]
version = "5.6.0"
default-features = false

[dependencies.base64]
version = "0.22"

[dependencies.chacha20poly1305]
version = "0.10"
optional = true

[dependencies.chrono]
version = "0.4"
features = [
    "serde",
    "serde",
]
default-features = false

[dependencies.ed25519-dalek]
version = "2.1.1"
features = ["rand_core"]
optional = true

[dependencies.impulse-utils]
version = "1.0.0-alpha.9"
features = ["mresult"]
default-features = false

[dependencies.rand]
version = "0.9"

[dependencies.regex]
version = "1.11"

[dependencies.rmp-serde]
version = "1.3"

[dependencies.serde]
version = "1"
features = ["derive"]
default-features = false

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

[dependencies.thiserror]
version = "2.0"

[target.'cfg(any(target_arch = "wasm32", target_arch = "wasm64"))'.dependencies.authnz-pqc-dilithium]
version = "0.2.0"
features = [
    "mode5",
    "wasm",
]
optional = true

[target.'cfg(any(target_arch = "wasm32", target_arch = "wasm64"))'.dependencies.authnz-u2f]
version = "0.2.8"
features = ["wasm"]
default-features = false

[target.'cfg(not(any(target_arch = "wasm32", target_arch = "wasm64")))'.dependencies.authnz-pqc-dilithium]
version = "0.2.0"
features = ["mode5"]
optional = true

[target.'cfg(not(any(target_arch = "wasm32", target_arch = "wasm64")))'.dependencies.authnz-u2f]
version = "0.2.8"
features = ["oapi-schema"]
default-features = false

[target.'cfg(not(any(target_arch = "wasm32", target_arch = "wasm64")))'.dependencies.impulse-server-kit]
version = "1.0.0-alpha.9"
features = ["oapi"]
optional = true
default-features = false

[target.'cfg(not(any(target_arch = "wasm32", target_arch = "wasm64")))'.dependencies.rand_chacha]
version = "0.9"