Crate pushers

Source
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 --release

Re-exports§

pub use pusher::Pusher;
pub use config::Config;
pub use config::ConfigBuilder;
pub use errors::PusherError;
pub use errors::RequestError;
pub use errors::WebhookError;
pub use token::Token;
pub use webhook::Webhook;
pub use webhook::WebhookEvent;
pub use channel::Channel;
pub use channel::ChannelName;
pub use channel::ChannelType;
pub use events::Event;
pub use events::BatchEvent;
pub use events::TriggerParams;
pub use auth::SocketAuth;
pub use auth::UserAuth;

Modules§

auth
channel
config
errors
events
pusher
token
util
webhook

Structs§

BuildInfo
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