[package]
name = "sgxs"
version = "0.8.2"
authors = ["Fortanix, Inc."]
license = "MPL-2.0"
description = """
Library for working with the SGX stream format.
"""
repository = "https://github.com/fortanix/rust-sgx"
documentation = "https://edp.fortanix.com/docs/api/sgxs/"
homepage = "https://edp.fortanix.com/"
keywords = ["sgx", "enclave", "sgxs"]
categories = ["parsing", "encoding"]

[dependencies]
# Project dependencies
sgx-isa = { version = ">=0.4.0, <0.6.0", path = "../sgx-isa" }

# External dependencies
byteorder = "1.0"                                     # Unlicense/MIT
time = { version = "0.3", features = ["formatting", "local-offset", "macros", "std"] } # MIT/Apache-2.0
thiserror = "1.0"                                     # MIT/Apache-2.0
anyhow = "1.0"                                        # MIT/Apache-2.0
openssl = { version = "0.10", optional = true }       # Apache-2.0
openssl-sys = { version = "0.9.24", optional = true } # Apache-2.0
foreign-types = { version = "0.3", optional = true }  # MIT/Apache-2.0
sha2 = { version = "0.10", optional = true }           # MIT OR Apache-2.0

[features]
crypto-openssl = ["openssl", "openssl-sys", "foreign-types"]

[target.'cfg(not(target_env = "sgx"))'.dev-dependencies]
crypto-hash = "0.3" # MIT
