open-net 0.3.5

A cross-platform async networking library for Rust with HTTP and WebSocket clients, network status monitoring, configurable retries, WebSocket reconnection and heartbeats, and managed client lifecycles. Reuse common networking infrastructure across applications to avoid repeated implementation and debugging, helping save development time and AI coding tokens.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Cryptography shared by the rustls HTTP and WebSocket transports.
//!
//! Supply an `Arc<CryptoProvider>` to a transport's TLS configuration to select
//! its algorithms and key loader independently of the process default. When no
//! provider is supplied, clients use the application's process default. The SDK
//! never installs a process default and has no built-in cryptographic provider.
//!
//! Choose a rustls 0.23 compatible provider in the application. Client creation
//! fails with `InvalidConfig` if no provider is available; the SDK never
//! implicitly enables OpenSSL, AWS-LC or ring.

pub use rustls::crypto::CryptoProvider;