Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
wolfcrypt-tls
Safe Rust TLS client and server backed by wolfSSL.
Exported as the wolfssl crate.
Why
wolfSSL is a FIPS 140-3 validated TLS library used in billions of embedded and
server deployments. wolfcrypt-tls gives you:
- FIPS 140-3 — TLS with a validated crypto backend for regulated environments (commercial license required; contact wolfSSL)
- Small footprint — designed for embedded targets alongside full server deployments; a single dependency chain, no OpenSSL
- Familiar Rust API —
TlsClient/TlsServertypes that wrap standardstd::io::Read + Writestreams
Usage
[]
= "0.1"
use ;
use ;
use TcpStream;
let mut roots = new;
roots.add_pem;
let config = builder
.with_root_certificates
.with_no_client_auth
.build?;
let stream = connect?;
let mut tls = new?;
tls.write_all?;
Server-side uses TlsServerConfig and TlsServer symmetrically.
How it works
wolfssl-src Compiles wolfSSL C source via the cc crate
│
wolfcrypt-sys bindgen FFI bindings to wolfSSL
│
wolfcrypt-rs Typed Rust wrapper
│
wolfcrypt-tls Safe TlsClient / TlsServer API (this crate)
Exported as lib.name = "wolfssl"
The crate wraps WOLFSSL_CTX and WOLFSSL session objects in RAII types and
maps wolfSSL return codes to Result. I/O is delegated to the caller's stream
via wolfSSL's custom I/O callbacks, so any Read + Write type works as the
underlying transport.
Features
| Feature | Description |
|---|---|
vendored |
Compile wolfSSL from source (requires WOLFSSL_SRC or pkg-config) |
fips |
Enable the wolfSSL FIPS 140-3 code path |
FIPS 140-3 validated builds require a wolfSSL commercial license and the validated source tree. Contact wolfSSL for a commercial FIPS license. See the workspace README for details.
Status
- TLS 1.2 and TLS 1.3
- Blocking I/O (async support planned)
- Unix and Windows socket support
Copyright
Copyright (C) 2006-2026 wolfSSL Inc.
License
MIT — see LICENSE.
The MIT License applies to the Rust source code in this crate. The underlying wolfSSL C library is licensed under GPL-2.0-or-later with a commercial option available from wolfSSL Inc.