Cargo Features

[dependencies]
mbedtls = { version = "0.13.0", default-features = false, features = ["x509", "std", "ssl", "debug", "no_std_deps", "force_aesni_support", "mpi_force_c_code", "rdrand", "aesni", "zlib", "time", "padlock", "dsa", "pkcs12", "pkcs12_rc2", "legacy_protocols", "async", "async-rt", "chrono"] }
x509 pkcs12? ssl?

Features are documented in the README

Affects mbedtls::x509, mbedtls::alloc

default = aesni, padlock, std, time

These default features are set whenever mbedtls is added without default-features = false somewhere in the dependency tree.

std default async? dsa? pkcs12? = yasna

Enables std of byteorder, mbedtls-platform-support, mbedtls-sys-auto, and serde

mbedtls-sys-auto:

deprecated automatic enabling of debug, can be removed on major version bump

Affects private::cstr_to_slice, private::error_to_io_error, context::Timer, io::Stream, io::ConnectedUdpSocket, certificate::Extension

ssl legacy_protocols? = x509

Affects mbedtls::ssl, mbedtls::alloc

debug

Enables debug of mbedtls-sys-auto

Affects mbedtls::set_global_debug_threshold

no_std_deps

Enables serde, spin of mbedtls-platform-support

force_aesni_support = aesni

Enables force_aesni_support of mbedtls-platform-support

mpi_force_c_code

Enables mpi_force_c_code of mbedtls-sys-auto

rdrand
aesni default force_aesni_support?

Enables aesni of mbedtls-platform-support

zlib

Enables zlib of mbedtls-sys-auto

time default

Enables time of mbedtls-platform-support

padlock default

Enables padlock of mbedtls-sys-auto

dsa = bit-vec, num-bigint, std, yasna

Affects pk::dsa

pkcs12 pkcs12_rc2? = std, x509, yasna

Affects mbedtls::pkcs12, mbedtls::alloc

pkcs12_rc2 = cbc, pkcs12, rc2
legacy_protocols = ssl

Enables legacy_protocols of mbedtls-sys-auto

async async-rt? = std, tokio

Enables io-util, macros and net of tokio

async-rt = async

Enables rt, rt-multi-thread and sync of tokio

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

yasna dsa? pkcs12? std

Enables yasna ^0.2

num-bigint dsa?

Enables num-bigint ^0.2

bit-vec dsa?

Enables bit-vec ^0.5

cbc pkcs12_rc2?
rc2 pkcs12_rc2?
tokio async? async-rt?
chrono implicit feature

Enables chrono

chrono:

Date and time library for Rust

Affects x509::InvalidTimeError