# 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"
rust-version = "1.84"
name = "jose"
version = "0.0.1"
authors = [
    "Erik Tesar <erik@erik-tesar.com>",
    "Justus K. <justus.k@protonmail.com>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A JSON Object Signing and Encryption implementation"
homepage = "https://github.com/minkan-chat/jose"
readme = "README.md"
keywords = [
    "jwt",
    "JsonWebToken",
    "json",
    "jose",
    "authentication",
]
categories = [
    "cryptography",
    "encoding",
    "parser-implementations",
    "no-std",
    "authentication",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/minkan-chat/jose.git"

[features]
default = []
std = [
    "signature/std",
    "thiserror-no-std/std",
    "rsa/std",
    "rand_core/std",
    "fluent-uri/std",
    "serde_json/std",
]

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

[[example]]
name = "basic-jwt"
path = "examples/basic-jwt/main.rs"
required-features = ["std"]

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

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

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

[dependencies.base64ct]
version = "1.5"
features = ["alloc"]
default-features = false

[dependencies.digest]
version = "0.10.7"
features = ["mac"]
default-features = false

[dependencies.ecdsa]
version = "0.16"
features = [
    "digest",
    "signing",
    "verifying",
    "alloc",
]
default-features = false

[dependencies.ed25519]
version = "2.2.1"
features = ["alloc"]
default-features = false

[dependencies.ed25519-dalek]
version = "2"
features = [
    "zeroize",
    "rand_core",
]
default-features = false

[dependencies.elliptic-curve]
version = "0.13"
features = [
    "arithmetic",
    "jwk",
    "serde",
    "sec1",
    "pkcs8",
    "pem",
]
default-features = false

[dependencies.fluent-uri]
version = "0.3.2"
default-features = false

[dependencies.generic-array]
version = "0.14"
features = ["serde"]
default-features = false

[dependencies.hashbrown]
version = "0.15"
features = ["serde"]

[dependencies.hmac]
version = "0.12"
default-features = false

[dependencies.k256]
version = "0.13"
features = [
    "arithmetic",
    "ecdsa",
]
default-features = false

[dependencies.mediatype]
version = "0.19.3"
features = ["serde"]

[dependencies.num-bigint-dig]
version = "0.8.1"
features = ["u64_digit"]
default-features = false

[dependencies.num-traits]
version = "0.2.15"
default-features = false

[dependencies.p256]
version = "0.13"
features = [
    "arithmetic",
    "ecdsa",
]
default-features = false

[dependencies.p384]
version = "0.13"
features = [
    "arithmetic",
    "ecdsa",
]
default-features = false

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

[dependencies.rsa]
version = "0.9"
default-features = false

[dependencies.secrecy]
version = "0.10.3"
features = ["serde"]
default-features = false

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

[dependencies.serde-value]
version = "0.7.0"
default-features = false

[dependencies.serde_json]
version = "1"
features = ["alloc"]
default-features = false

[dependencies.sha1]
version = "0.10"
features = ["oid"]
default-features = false

[dependencies.sha2]
version = "0.10"
features = ["oid"]
default-features = false

[dependencies.signature]
version = "2.1.0"
default-features = false

[dependencies.thiserror-no-std]
version = "2.0.2"

[dependencies.typenum]
version = "1.15"
features = ["no_std"]
default-features = false

[dependencies.zeroize]
version = "1.8.1"
features = [
    "derive",
    "serde",
]
default-features = false

[dev-dependencies.clap]
version = "4.5.27"
features = ["derive"]

[dev-dependencies.clio]
version = "0.3.5"
features = ["clap-parse"]

[dev-dependencies.eyre]
version = "0.6.12"

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