1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//! Official, async-first, fully-typed Rust SDK for the [Radion](https://radion.app) platform.
//!
//! One [`Radion`] client, one API key. Today the SDK exposes the realtime
//! (WebSocket) product surface and standalone [`webhooks`] helpers; further
//! surfaces attach to the same client as they ship, so adopting them is
//! purely additive.
//!
//! # Example
//!
//! ```no_run
//! use futures_util::StreamExt;
//! use radion_sdk::{Radion, realtime::{Channel, Payload, Subscription}};
//!
//! # async fn run() -> eyre::Result<()> {
//! let radion = Radion::builder().api_key("sk_...").build()?;
//! radion.realtime.connect().await?;
//!
//! let mut trades = radion.realtime.subscribe(Subscription::new("trading", Channel::Trading)).await?;
//! while let Some(event) = trades.next().await {
//! if let Payload::Trading(trade) = event.data {
//! println!("{} {:?}", event.id, trade);
//! }
//! }
//! # Ok(())
//! # }
//! ```
//!
//! # Features
//!
//! - `realtime` *(default)* — the WebSocket product surface.
//! - `rustls` *(default)* — rustls TLS backend (no system OpenSSL dependency).
//! - `native-tls` — use the platform native TLS backend instead.
//! - `compression` — inflate zlib-compressed realtime frames. Opt in per client
//! with `.compression(true)`.
//! - `tracing` — emit [`tracing`](https://docs.rs/tracing) spans/events.
//! - `webhooks` — consume webhook deliveries: signature verification and body
//! parsing. No async transport — works in any HTTP server.
pub use ;
pub use ;
pub use ;