wse-client 3.2.0

Rust client for WSE servers, natively and in the browser: topics with message recovery, reconnects, MessagePack, end-to-end encryption and signed messages.
Documentation
// The README shows encryption and signing: the crate documentation with them.
#![cfg_attr(feature = "aws-lc", doc = include_str!("../README.md"))]

// In the browser the crypto is RustCrypto: there is no FIPS module there.
#[cfg(all(feature = "fips", target_arch = "wasm32"))]
compile_error!("the fips feature needs aws-lc-rs, which does not build for the browser");
// WebAssembly outside the browser has no WebSocket of the page to drive.
#[cfg(all(target_arch = "wasm32", not(target_os = "unknown")))]
compile_error!("wse-client runs natively, or in the browser (wasm32-unknown-unknown)");

#[cfg(all(feature = "bridge", not(target_arch = "wasm32")))]
pub mod bridge;
#[cfg(target_arch = "wasm32")]
mod browser;
mod client;
mod config;
#[cfg(not(target_arch = "wasm32"))]
mod connection;
mod decode;
mod delivery;
mod error;
mod events;
mod frames;
mod handler;
mod message;
#[cfg(all(feature = "native", not(target_arch = "wasm32")))]
pub mod native;
mod outbox;
mod policy;
mod scan;
mod security;
mod sequencer;
mod session;

pub use client::{Client, SendOptions, Status};
#[cfg(feature = "aws-lc")]
pub use config::Encryption;
pub use config::{Config, Format, Reconnect, TokenProvider};
pub use delivery::{Continuity, Delivery, StreamPosition, Subscription, TopicState};
pub use error::Error;
pub use events::{Events, Incoming, connect, start};
pub use handler::{
    CheckpointRejected, Connected, Disconnected, Event, Gap, GapReason, Handler, MaybeSend,
    NotDelivered, Paused, Recovery, Resync, ServerError, StorageFailed, Subscribed,
    TopicContinuity,
};
pub use message::{Message, OwnedMessage, Position, Signature};
pub use outbox::Offline;
#[cfg(feature = "aws-lc")]
pub use security::with_crypto::{generate_key, public_key, public_key_jwk};