# 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.95"
name = "klauthed-protocol"
version = "1.0.0"
authors = [
    "Klauthed Authors <klauthed@klauthed.com>",
    "Ömer Ekmen <omer@klauthed.com>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Protocol types for klauthed: OAuth2, OpenID Connect, JWKS, and SCIM."
readme = "README.md"
keywords = [
    "oauth2",
    "oidc",
    "jwks",
    "scim",
    "klauthed",
]
categories = ["authentication"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/klauthed/rust-libraries"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = [
    "oidc",
    "scim",
]
oauth2 = ["oidc"]
oidc = []
scim = []

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

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

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

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

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

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

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

[dependencies.klauthed-error]
version = "1.0.0"

[dependencies.klauthed-macros]
version = "1.0.0"

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"
