# 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 = "ic_auth_verifier"
version = "0.4.5"
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Rust library used for integrating with IC-Auth."
readme = "README.md"
keywords = [
    "config",
    "cbor",
    "canister",
    "icp",
    "encryption",
]
categories = ["web-programming"]
license = "MIT"
repository = "https://github.com/ldclabs/ic-auth/tree/main/src/ic_auth_verifier"
resolver = "2"

[features]
default = []
envelope = [
    "dep:http",
    "dep:base64",
    "dep:ic-signature-verification",
]
full = ["sign"]
sign = [
    "envelope",
    "dep:ic-agent",
]

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

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

[dependencies.candid]
version = "0.10"

[dependencies.ciborium]
version = "0.2"

[dependencies.const-hex]
version = "1"

[dependencies.ed25519-dalek]
version = "2"

[dependencies.http]
version = "1.3"
optional = true

[dependencies.ic-agent]
version = "0.40"
optional = true

[dependencies.ic-canister-sig-creation]
version = "1.3"

[dependencies.ic-signature-verification]
version = "0.2"
optional = true

[dependencies.ic_auth_types]
version = "0.4"

[dependencies.k256]
version = "0.13"

[dependencies.p256]
version = "0.13"

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

[dependencies.sha2]
version = "0.10"

[dependencies.sha3]
version = "0.10"

[dependencies.simple_asn1]
version = "0.6"

[dev-dependencies.ed25519-consensus]
version = "2.1"

[dev-dependencies.ic-agent]
version = "0.40"

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