compio-tls 0.9.0

TLS adaptor with compio
Documentation

compio-tls

MIT licensed crates.io docs.rs Check Test

TLS adaptor for compio.

This crate provides TLS/SSL support for compio networking types. It offers both native TLS (using platform-specific implementations) and rustls (pure Rust TLS) backends, allowing you to secure your network connections.

Features

  • TLS client and server support
  • Multiple backend options:
    • native-tls: Platform-specific TLS (SChannel on Windows, Secure Transport on macOS, OpenSSL on Linux)
    • rustls: Pure Rust TLS implementation
  • ALPN (Application-Layer Protocol Negotiation) support
  • Integration with compio's completion-based IO model

Usage

Use compio directly with tls feature and your chosen backend:

cargo add compio --features tls,rustls # or native-tls