titanium_rs/
lib.rs

1//! Titanium - The ultimate high-performance Discord API framework.
2//!
3//! This crate provides a high-level wrapper around the Titanium ecosystem:
4//! - `titanium-gateway`: WebSocket connection management
5//! - `titanium-http`: REST API client
6//! - `titanium-model`: Discord data models
7//! - `titanium-cache`: In-memory caching
8//! - `titanium-voice`: Voice support
9//!
10//! # Example
11//!
12//! ```no_run
13//! use titanium_rs::prelude::*;
14//!
15//! #[tokio::main]
16//! async fn main() {
17//!     let client = Client::builder("TOKEN")
18//!         .intents(Intents::GUILD_MESSAGES | Intents::MESSAGE_CONTENT)
19//!         .build()
20//!         .await
21//!         .unwrap();
22//!
23//!     client.start().await.unwrap();
24//! }
25//! ```
26
27pub mod client;
28pub mod collector;
29pub mod context;
30pub mod framework;
31pub mod prelude;
32
33// Re-exports
34pub use titanium_cache as cache;
35pub use titanium_gateway as gateway;
36pub use titanium_http as http;
37pub use titanium_model as model;
38pub use titanium_voice as voice;
39
40pub mod error;
41pub use error::TitaniumError;
42
43pub use client::Client;
44pub use client::EventHandler;
45pub use framework::Framework;
46
47#[cfg(feature = "performance")]
48#[global_allocator]
49static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
50
51// Incremental build test modification