sudp 0.1.0

Secret-Use Delegation Protocol — protocol-level secret use for agentic systems
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 = "2021"
rust-version = "1.85"
name = "sudp"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Secret-Use Delegation Protocol — protocol-level secret use for agentic systems"
documentation = "https://docs.rs/sudp"
readme = "README.md"
keywords = [
    "agent",
    "authorization",
    "passkey",
    "webauthn",
    "delegation",
]
categories = [
    "cryptography",
    "authentication",
]
license = "Apache-2.0"
repository = "https://github.com/xhyumiracle/sudp"

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

[features]
default = [
    "std-primitives",
    "webauthn",
    "json-canonical",
]
hpke = [
    "dep:hpke",
    "dep:rand_core_09",
]
json-canonical = []
std-primitives = [
    "dep:sha2",
    "dep:hkdf",
    "dep:chacha20poly1305",
    "dep:rand",
]
webauthn = [
    "dep:p256",
    "dep:sha2",
]

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

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

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

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

[dependencies.base64]
version = "0.22"

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

[dependencies.hkdf]
version = "0.12"
optional = true

[dependencies.hpke]
version = "0.13"
features = [
    "alloc",
    "p256",
]
optional = true
default-features = false

[dependencies.p256]
version = "0.13"
features = ["ecdsa"]
optional = true

[dependencies.rand]
version = "0.8"
optional = true

[dependencies.rand_core_09]
version = "0.9"
features = ["os_rng"]
optional = true
default-features = false
package = "rand_core"

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

[dependencies.serde_json]
version = "1"

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

[dependencies.subtle]
version = "2"

[dependencies.thiserror]
version = "1"

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

[dev-dependencies.base64]
version = "0.22"

[dev-dependencies.p256]
version = "0.13"
features = [
    "ecdh",
    "ecdsa",
]

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

[dev-dependencies.serde_json]
version = "1"