cose2 0.3.2

A Rust library for CBOR Object Signing and Encryption (COSE, RFC 9052) and CBOR Web Token (CWT, RFC 8392), built on cbor2.
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 = "cose2"
version = "0.3.2"
authors = ["0xZensh <txr1883@gmail.com>"]
build = false
exclude = [".github/"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Rust library for CBOR Object Signing and Encryption (COSE, RFC 9052) and CBOR Web Token (CWT, RFC 8392), built on cbor2."
homepage = "https://github.com/ldclabs/cose2"
documentation = "https://docs.rs/cose2"
readme = "README.md"
keywords = [
    "cbor",
    "cose",
    "cwt",
    "rfc9052",
]
categories = [
    "encoding",
    "parsing",
]
license = "MIT"
repository = "https://github.com/ldclabs/cose2"

[package.metadata.docs.rs]
all-features = true

[features]
crypto = ["crypto-ring"]
crypto-aes-gcm = ["dep:aes-gcm"]
crypto-aws-lc-rs = ["dep:aws-lc-rs"]
crypto-ed25519-dalek = ["dep:ed25519-dalek"]
crypto-ring = ["dep:ring"]
default = []

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

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

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

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

[[example]]
name = "encrypt0_ring"
path = "examples/encrypt0_ring.rs"
required-features = ["crypto-ring"]

[[example]]
name = "mac0_ring"
path = "examples/mac0_ring.rs"
required-features = ["crypto-ring"]

[[example]]
name = "sign1_ring"
path = "examples/sign1_ring.rs"
required-features = ["crypto-ring"]

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

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

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

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

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

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

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

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

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

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

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

[dependencies.aes-gcm]
version = "0.11"
optional = true

[dependencies.aws-lc-rs]
version = "1.17"
optional = true

[dependencies.cbor2]
version = "1.1"
features = ["derive"]

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

[dependencies.ring]
version = "0.17"
optional = true

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

[dependencies.serde_bytes]
version = "0.11"

[dev-dependencies.hex]
version = "0.4"