# 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 = "2018" name = "mbedtls" version = "0.13.0" authors = ["Jethro Beekman "] build = "build.rs" autobins = false autoexamples = false autotests = false autobenches = false description = """ Idiomatic Rust wrapper for MbedTLS, allowing you to use MbedTLS with only safe code while being able to use such great Rust features like error handling and closures. Building on MbedTLS's focus on embedded use, this crate can be used in a no_std environment.""" documentation = "https://docs.rs/mbedtls/" readme = "README.md" keywords = [ "MbedTLS", "mbed", "TLS", "SSL", "cryptography", ] license = "Apache-2.0 OR GPL-2.0-or-later" repository = "https://github.com/fortanix/rust-mbedtls" resolver = "2" [package.metadata.docs.rs] features = [ "x509", "ssl", ] [lib] name = "mbedtls" path = "src/lib.rs" [[example]] name = "client" path = "examples/client.rs" required-features = [ "std", "ssl", ] [[example]] name = "client_dtls" path = "examples/client_dtls.rs" required-features = [ "std", "ssl", ] [[example]] name = "client_psk" path = "examples/client_psk.rs" required-features = [ "std", "ssl", ] [[example]] name = "server" path = "examples/server.rs" required-features = [ "std", "ssl", ] [[test]] name = "async_session" path = "tests/async_session.rs" required-features = [ "async-rt", "ssl", ] [[test]] name = "bignum" path = "tests/bignum.rs" [[test]] name = "client_server" path = "tests/client_server.rs" required-features = [ "std", "ssl", ] [[test]] name = "ec" path = "tests/ec.rs" [[test]] name = "hkdf" path = "tests/hkdf.rs" [[test]] name = "hyper" path = "tests/hyper.rs" required-features = [ "std", "ssl", ] [[test]] name = "mbedtls_self_tests" path = "tests/mbedtls_self_tests.rs" [[test]] name = "pbkdf" path = "tests/pbkdf.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", "ssl", ] [[test]] name = "ssl_conf_verify" path = "tests/ssl_conf_verify.rs" required-features = [ "std", "ssl", ] [[bench]] name = "cipher" path = "benches/cipher.rs" harness = false [[bench]] name = "ecp_eq_test" path = "benches/ecp_eq_test.rs" harness = false [dependencies.bit-vec] version = "0.5" optional = true [dependencies.bitflags] version = "1" [dependencies.byteorder] version = "1.0.0" default-features = false [dependencies.cbc] version = "0.1.2" optional = true [dependencies.cfg-if] version = "1.0.0" [dependencies.chrono] version = "0.4" optional = true [dependencies.mbedtls-platform-support] version = "0.1" [dependencies.mbedtls-sys-auto] version = "2.25.0" features = [ "trusted_cert_callback", "threading", ] default-features = false [dependencies.num-bigint] version = "0.2" optional = true [dependencies.rc2] version = "0.8.1" optional = true [dependencies.serde] version = "1.0.214" features = ["alloc"] default-features = false [dependencies.serde_derive] version = "1.0.214" [dependencies.tokio] version = "1.16.1" optional = true [dependencies.yasna] version = "0.2" features = [ "num-bigint", "bit-vec", ] optional = true [dev-dependencies.async-stream] version = "0.3.0" [dev-dependencies.criterion] version = "0.5.1" features = ["html_reports"] [dev-dependencies.futures] version = "0.3" [dev-dependencies.hex] version = "0.3" [dev-dependencies.hyper] version = "0.10.16" default-features = false [dev-dependencies.libc] version = "0.2.0" [dev-dependencies.matches] version = "0.1.8" [dev-dependencies.pin-project-lite] version = "0.2" [dev-dependencies.rand] version = "0.4.0" [dev-dependencies.serde_cbor] version = "0.6" [dev-dependencies.tracing] version = "0.1" [build-dependencies.cc] version = "1.0" [build-dependencies.rustc_version] version = "0.4.0" [features] aesni = ["mbedtls-platform-support/aesni"] async = [ "std", "tokio", "tokio/net", "tokio/io-util", "tokio/macros", ] async-rt = [ "async", "tokio/rt", "tokio/sync", "tokio/rt-multi-thread", ] debug = ["mbedtls-sys-auto/debug"] default = [ "std", "aesni", "time", "padlock", ] dsa = [ "std", "yasna", "num-bigint", "bit-vec", ] force_aesni_support = [ "mbedtls-platform-support/force_aesni_support", "aesni", ] legacy_protocols = [ "mbedtls-sys-auto/legacy_protocols", "ssl", ] mpi_force_c_code = ["mbedtls-sys-auto/mpi_force_c_code"] no_std_deps = [ "mbedtls-platform-support/spin", "serde/alloc", ] padlock = ["mbedtls-sys-auto/padlock"] pkcs12 = [ "std", "yasna", "x509", ] pkcs12_rc2 = [ "pkcs12", "rc2", "cbc", ] rdrand = [] ssl = ["x509"] std = [ "byteorder/std", "mbedtls-sys-auto/std", "serde/std", "yasna", "mbedtls-platform-support/std", ] time = ["mbedtls-platform-support/time"] x509 = [] zlib = ["mbedtls-sys-auto/zlib"] [target.'cfg(target_env = "msvc")'.dependencies.mbedtls-platform-support] version = "0.1" features = ["time"] [target.'cfg(target_env = "msvc")'.dependencies.mbedtls-sys-auto] version = "2.25.0" features = [ "trusted_cert_callback", "threading", "time", ] default-features = false [target.x86_64-fortanix-unknown-sgx.dependencies.rs-libc] version = "0.2.0" [lints.rust.unexpected_cfgs] level = "warn" priority = 0 check-cfg = [ "cfg(nightly)", 'cfg(sys_threading_component, values("custom"))', 'cfg(sys_time_component, values("custom"))', 'cfg(sys_std_component, values("entropy", "net"))', 'cfg(time_component, values("custom", "libc"))', ]