| Crates.io | rus |
| lib.rs | rus |
| version | 0.0.1 |
| created_at | 2025-09-27 17:23:17.182981+00 |
| updated_at | 2025-09-28 10:15:50.145169+00 |
| description | CLI interface for all operations, system config, settings, and user management |
| homepage | https://github.com/muhammad-fiaz/Rustalk |
| repository | https://github.com/muhammad-fiaz/Rustalk |
| max_upload_size | |
| id | 1857494 |
| size | 95,065 |
CLI Operations Library and Binary for Rustalk
Rus is the command-line interface and operations library that provides all user-facing functionality for Rustalk. It handles user management, system configuration, and serves as the primary interface for P2P chat operations.
# Install rus CLI directly
cargo install rus
# After installation, ensure ~/.cargo/bin is in PATH
rus setup
rus chat
# Installs rustalk + rus with automatic PATH setup
npm install -g rustalk
# Both commands available:
rustalk setup # TypeScript interface
rus setup # Rust CLI
git clone <repository>
cd rustalk-workflow
cargo build --release -p rus
[dependencies]
rus = "0.0.1"
# Setup user credentials
rus setup
# Start chat session
rus chat --port 5000
# Connect to a peer
rus connect 192.168.1.100:5000
# User management
rus users list
rus users switch user@example.com
# System configuration
rus path add
rus config show
use rus::{add_to_path, UserRegistry};
use anyhow::Result;
#[tokio::main]
async fn main() -> Result<()> {
// Add to system PATH
add_to_path()?;
// Use user management
let mut registry = UserRegistry::new()?;
registry.list_users()?;
Ok(())
}
rus setup - Initial user setup and credential configurationrus config show - Display current configurationrus path add - Add rus to system PATHrus chat [--port PORT] - Start chat sessionrus connect ADDRESS - Connect to peer directlyrus peers - List connected peersrus users list - List all registered usersrus users switch EMAIL - Switch active userrus users info - Show current user informationApache-2.0 License. See LICENSE for details.
See CONTRIBUTING.md for contribution guidelines.
Part of the Rustalk project.