A Rust client for the NGA (艾泽拉斯国家地理) forum.
| Crate | Role |
|---|---|
rNGA |
Library (rnga) |
rNGA-CLI |
CLI, TUI, MCP server (rnga) |
cargo install --path rNGA-CLI
rnga auth login --token YOUR_TOKEN --uid YOUR_UID # optional
rnga forum list
rnga topic list 310
rnga topic read 12345678
rnga tui --forum 7 # interactive UILibrary usage:
use rnga::{NGAClient, Result, ForumIdKind};
#[tokio::main]
async fn main() -> Result<()> {
let client = NGAClient::builder().build()?;
let categories = client.forums().list().await?;
let topics = client.topics().list(ForumIdKind::fid("310")).send().await?;
Ok(())
}| Doc | Contents |
|---|---|
| rNGA/README.md | Library API and examples |
| rNGA-CLI/README.md | CLI commands, TUI, MCP |
| docs/NGA.md | NGA HTTP protocol (implementation-independent) |
| docs/CLIENT.md | rNGA endpoint routing and format policy |
cargo build
cargo test
cargo build --releaseMIT