Expand description
Pusher HTTP API client for Rust
This library provides a safe, fast, and idiomatic Rust client for the Pusher HTTP API.
§Features
rustls-tls(default): Use rustls for TLS (recommended for cross-compilation)native-tls: Use native TLS (OpenSSL on Linux, Secure Transport on macOS, SChannel on Windows)encryption(default): Enable support for end-to-end encrypted channels
§Cross-Compilation
This library is designed to work well with cross-compilation. The default features use pure-Rust dependencies that compile easily to different targets.
# Cross-compile to ARM
cross build --target armv7-unknown-linux-gnueabihf --releaseRe-exports§
pub use channel::Channel;pub use channel::ChannelName;pub use channel::ChannelType;pub use config::Config;pub use config::ConfigBuilder;pub use errors::PusherError;pub use errors::RequestError;pub use errors::WebhookError;pub use pusher::Pusher;pub use token::Token;pub use webhook::Webhook;pub use webhook::WebhookEvent;pub use auth::SocketAuth;pub use auth::UserAuth;pub use events::BatchEvent;pub use events::Event;pub use events::TriggerParams;
Modules§
Structs§
- Build
Info - Information about the build configuration
Constants§
- ENCRYPTION_
AVAILABLE - Check if encryption support is available at compile time
Type Aliases§
- Result
- Result type alias for Pusher operations