# 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.62.1"
name = "mc-sgx-dcap-types"
version = "0.7.5"
authors = ["MobileCoin"]
description = "Rust wrapper for common DCAP types."
readme = "README.md"
keywords = [
    "ffi",
    "sgx",
]
categories = [
    "api-bindings",
    "hardware-support",
]
license = "Apache-2.0"
repository = "https://github.com/mobilecoinfoundation/sgx"

[dependencies.const-oid]
version = "0.9.2"
optional = true
default-features = false

[dependencies.displaydoc]
version = "0.2.3"
default-features = false

[dependencies.hex]
version = "0.4.3"
features = ["alloc"]
optional = true
default-features = false

[dependencies.mc-sgx-core-types]
version = "=0.7.5"

[dependencies.mc-sgx-dcap-sys-types]
version = "=0.7.5"

[dependencies.mc-sgx-util]
version = "=0.7.5"

[dependencies.nom]
version = "7.1.2"
default-features = false

[dependencies.p256]
version = "0.13.0"
features = [
    "ecdsa-core",
    "ecdsa",
]
default-features = false

[dependencies.serde]
version = "1.0"
features = ["derive"]
default-features = false

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

[dependencies.static_assertions]
version = "1.1.0"

[dependencies.subtle]
version = "2"
default-features = false

[dependencies.x509-cert]
version = "0.2.3"
features = ["pem"]
optional = true
default-features = false

[dev-dependencies.assert_matches]
version = "1.5.0"

[dev-dependencies.mc-sgx-core-sys-types]
version = "=0.7.5"

[dev-dependencies.serde_cbor]
version = "0.11.2"

[dev-dependencies.textwrap]
version = "0.16.0"

[dev-dependencies.x509-cert]
version = "0.2.3"
features = ["pem"]
default-features = false

[dev-dependencies.yare]
version = "1.0.1"

[features]
alloc = [
    "dep:x509-cert",
    "serde/alloc",
]
default = []
tcb = [
    "alloc",
    "dep:x509-cert",
    "dep:const-oid",
    "dep:hex",
    "serde/alloc",
]
