[package]
edition = "2021"
rust-version = "1.85"
name = "cose2"
version = "0.3.0"
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-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_ring"
path = "tests/crypto_ring.rs"
[[test]]
name = "messages"
path = "tests/messages.rs"
[[test]]
name = "rfc_examples"
path = "tests/rfc_examples.rs"
[dependencies.cbor2]
version = "1"
features = ["derive"]
[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"