rac-rs
A Rust client library for RAC (Real Address Chat) protocol.
rac_rs provides both synchronous and asynchronous clients to interact with RAC servers. It supports both the TCP
RAC protocol and the WebSocket-based WRAC protocol.
Features
- Support for both
RACandWRACprotocols. - TLS support for secure connections.
- Synchronous (
Client) and Asynchronous (async_client) APIs. - User registration and authentication for
RACv2. - Fetch all or only new messages.
- Send messages with
{username}placeholder replacement. - Comprehensive error handling via
ClientError.
Installation
Add this to your Cargo.toml:
[]
= "0.1.0"
Or use bleeding-edge version from GitHub:
[]
= { = "https://github.com/kostya-zero/rac-rs.git" }
Configuring
The crate APIs are split into separate features:
client- Synchronous client for RAC protocol.async_client- Asynchronous client for RAC protocol.wrac- Synchronous client for WRAC protocol.async_wrac- Asynchronous client for WRAC protocol.
All of these features are enabled by default.
Usage
Here is a basic example of how to use the synchronous Client.
use Client;
use ;
Projects using rac_rs:
- Tower: A modern desktop client for RAC protocol built with Tauri.
License
This project is licensed under the MIT License.