[[example]]
name = "client"
path = "examples/client.rs"
required-features = ["std"]
[[example]]
name = "server"
path = "examples/server.rs"
required-features = ["std"]
[[test]]
name = "alpn"
path = "tests/alpn.rs"
required-features = ["std"]
[[test]]
name = "async_session"
path = "tests/async_session.rs"
required-features = ["async-rt"]
[[test]]
name = "client_server"
path = "tests/client_server.rs"
required-features = ["std"]
[[test]]
name = "ec"
path = "tests/ec.rs"
[[test]]
name = "pbkdf"
path = "tests/pbkdf.rs"
[[test]]
name = "mbedtls_self_tests"
path = "tests/mbedtls_self_tests.rs"
[[test]]
name = "bignum"
path = "tests/bignum.rs"
[[test]]
name = "rsa"
path = "tests/rsa.rs"
[[test]]
name = "save_restore"
path = "tests/save_restore.rs"
[[test]]
name = "ssl_conf_ca_cb"
path = "tests/ssl_conf_ca_cb.rs"
required-features = ["std"]
[[test]]
name = "ssl_conf_verify"
path = "tests/ssl_conf_verify.rs"
required-features = ["std"]
[build-dependencies.cc]
version = "1.0"
[dependencies.bit-vec]
optional = true
version = "0.5"
[dependencies.bitflags]
version = "1"
[dependencies.byteorder]
version = "1.0.0"
[dependencies.cbc]
optional = true
version = "0.1.2"
[dependencies.chrono]
optional = true
version = "0.4"
[dependencies.core_io]
features = ["collections"]
optional = true
version = "0.1.20210325"
[dependencies.mbedtls-sys-auto]
default-features = false
features = ["custom_printf", "trusted_cert_callback"]
version = "2.28.0"
[dependencies.num-bigint]
optional = true
version = "0.2"
[dependencies.rc2]
optional = true
version = "0.8.1"
[dependencies.serde]
default-features = false
version = "1.0.7"
[dependencies.serde_derive]
version = "1.0.7"
[dependencies.spin]
default-features = false
optional = true
version = "0.4.0"
[dependencies.tokio]
optional = true
version = "1.16.1"
[dependencies.yasna]
features = ["num-bigint", "bit-vec"]
optional = true
version = "0.2"
[dev-dependencies.cfg-if]
version = "1.0.0"
[dev-dependencies.hex]
version = "0.3"
[dev-dependencies.libc]
version = "0.2.0"
[dev-dependencies.matches]
version = "0.1.8"
[dev-dependencies.rand]
version = "0.4.0"
[dev-dependencies.serde_cbor]
version = "0.6"
[features]
aesni = ["mbedtls-sys-auto/aesni"]
async = ["std", "threading", "tokio", "tokio/net", "tokio/io-util", "tokio/macros"]
async-rt = ["async", "tokio/rt"]
core-io = ["core_io"]
custom_gmtime_r = ["mbedtls-sys-auto/custom_gmtime_r", "chrono"]
custom_time = ["mbedtls-sys-auto/custom_time", "chrono"]
default = ["std", "aesni", "time", "padlock", "legacy_protocols", "use_libc"]
dsa = ["std", "yasna", "num-bigint", "bit-vec"]
force_aesni_support = ["mbedtls-sys-auto/custom_has_support", "mbedtls-sys-auto/aes_alt", "aesni"]
legacy_protocols = ["mbedtls-sys-auto/legacy_protocols"]
mpi_force_c_code = ["mbedtls-sys-auto/mpi_force_c_code"]
padlock = ["mbedtls-sys-auto/padlock"]
pkcs12 = ["std", "yasna"]
pkcs12_rc2 = ["pkcs12", "rc2", "cbc"]
pthread = ["threading", "std", "mbedtls-sys-auto/pthread"]
rdrand = []
rust_threading = ["threading", "mbedtls-sys-auto/custom_threading", "std"]
sgx = ["std", "rust_threading", "rdrand", "force_aesni_support"]
spin_threading = ["threading", "spin", "mbedtls-sys-auto/custom_threading"]
std = ["mbedtls-sys-auto/std", "serde/std", "yasna"]
threading = []
time = ["mbedtls-sys-auto/time"]
use_libc = ["mbedtls-sys-auto/libc"]
zlib = ["mbedtls-sys-auto/zlib"]
[package]
authors = ["Jethro Beekman <jethro@fortanix.com>"]
build = "build.rs"
description = "Idiomatic Rust wrapper for MbedTLS, allowing you to use MbedTLS with only safe\ncode while being able to use such great Rust features like error handling and\nclosures.\n\nBuilding on MbedTLS's focus on embedded use, this crate can be used in a no_std\nenvironment."
documentation = "https://docs.rs/mbedtls/"
edition = "2018"
keywords = ["MbedTLS", "mbed", "TLS", "SSL", "cryptography"]
license = "Apache-2.0/GPL-2.0+"
name = "mbedtls"
readme = "README.md"
repository = "https://github.com/fortanix/rust-mbedtls"
version = "0.7.2"
[target.x86_64-fortanix-unknown-sgx.dependencies.rs-libc]
version = "0.1.0"