2024-11-10 19:40:39 -08:00
|
|
|
pub mod api;
|
2024-04-20 18:17:55 -07:00
|
|
|
|
2024-04-21 15:14:16 -07:00
|
|
|
pub mod model;
|
2024-04-20 18:17:55 -07:00
|
|
|
pub use self::api::APIInterface;
|
|
|
|
|
|
|
|
|
|
#[cfg(test)]
|
2025-06-06 16:39:31 -07:00
|
|
|
pub mod tests;
|
2025-09-03 22:23:45 -07:00
|
|
|
|
|
|
|
|
// Ensure a process-level rustls CryptoProvider is installed for TLS (wss).
|
|
|
|
|
// Rustls 0.23 requires an explicit provider installation (e.g., ring or aws-lc).
|
|
|
|
|
// We depend on rustls with feature "ring" and install it once at startup.
|
|
|
|
|
#[ctor::ctor]
|
|
|
|
|
fn install_rustls_crypto_provider() {
|
|
|
|
|
// If already installed, this is a no-op. Ignore the result.
|
|
|
|
|
#[allow(unused_must_use)]
|
|
|
|
|
{
|
|
|
|
|
use rustls::crypto::ring;
|
|
|
|
|
ring::default_provider().install_default();
|
|
|
|
|
}
|
|
|
|
|
}
|