Skip to content

YouKap/singbox-rust

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

112 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

singbox-rust

A pragmatic rewrite path for sing-box in Rust. Focused on good taste, never break userspace, and boring clarity.

🚀 Production Ready: 100% Protocol Parity with upstream sing-box 1.12.12. See Project Status for detailed feature matrix and milestones.


🚨 IMPORTANT: Authoritative Navigation Document

⚠️ Developer Must-Read: Before starting any development work, you must read and verify PROJECT_STRUCTURE_NAVIGATION.md.

  • 📋 Authoritative: This document is the sole source of truth for project structure.
  • 🔄 Update Responsibility: Any developer modifying the project structure MUST sync this document.
  • Verification: New developers or AI assistants must verify this document's accuracy before work.
  • 📍 Navigation First: All development activities should trace paths based on this document.

📚 Documentation

Visit our comprehensive documentation portal at docs/:

🛠️ Operations


Quick Start

Build the full-featured binary:

cargo +1.90 build -p app --features "acceptance,manpage" --release
./target/release/app version

Run with a config:

./target/release/app run -c config.json

See Getting Started for detailed instructions.


Key Features

🚀 Performance

  • Native Process Matching: 149x faster on macOS than Go implementation
  • Zero-Copy Parsing: Minimal allocations in hot paths
  • Memory Safe: No GC pauses, predictable footprint

🔐 Security & TLS

  • REALITY Protocol: Anti-censorship TLS fingerprinting
  • ECH (Encrypted Client Hello): SNI encryption
  • uTLS Fingerprinting: 27+ browser fingerprints (Chrome, Firefox, Safari, Edge)
  • ACME Auto-Renewal: Let's Encrypt/ZeroSSL with HTTP-01/DNS-01 challenges

🌐 Protocols (36 Total)

Inbound Outbound Transport
SOCKS (4/5), HTTP Shadowsocks, VMess WebSocket, gRPC
Shadowsocks, Trojan VLESS, Trojan HTTP Upgrade
VMess, VLESS Hysteria2, TUIC QUIC, TCP, UDP
Hysteria2, TUIC WireGuard, SSH REALITY, ECH
WireGuard, TUN Direct, Block simple-obfs

📊 Observability

  • Prometheus Metrics: Connection counts, latency histograms
  • Clash/V2Ray API: Traffic stats and rule management
  • Circuit Breaker: Automatic failure detection and recovery

🔗 Advanced

  • Smart Routing: 38 rule types (domain, GeoIP, process, user, etc.)
  • DERP Mesh: Tailscale relay for cross-region connectivity
  • Hot Reload: Live config updates via Admin API

📖 Rust-Only Enhancements - Features beyond Go parity


Community & Support


For detailed navigation of the project structure, see PROJECT_STRUCTURE_NAVIGATION.md.

About

No description, website, or topics provided.

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Rust 94.8%
  • Shell 5.0%
  • Other 0.2%