| Crates.io | rustysquid |
| lib.rs | rustysquid |
| version | 1.2.0 |
| created_at | 2025-08-07 17:53:52.461154+00 |
| updated_at | 2025-08-07 20:57:59.244197+00 |
| description | High-performance HTTP caching proxy optimized for embedded systems and routers |
| homepage | https://github.com/paiml/rustysquid |
| repository | https://github.com/paiml/rustysquid |
| max_upload_size | |
| id | 1785604 |
| size | 146,279 |
A minimal, memory-safe HTTP caching proxy inspired by Squid, designed for embedded systems and routers.
✅ v1.1.0 Production Ready - PMAT quality standards integrated
RustySquid includes comprehensive examples demonstrating various use cases:
cargo run --example simple_proxy
Demonstrates basic cache operations and proxy setup.
cargo run --example cache_demo
Shows cacheability tests, TTL calculation, expiration handling, and size limits.
cargo run --example performance_test --release
Measures cache performance including sequential/concurrent operations and hit vs miss timing.
cargo run --example full_proxy
Runs a complete HTTP proxy server on port 8888 with statistics tracking.
cargo build --release --target aarch64-unknown-linux-musl
cat target/aarch64-unknown-linux-musl/release/rustysquid | \
ssh user@router "cat > /tmp/rustysquid && chmod +x /tmp/rustysquid"
ssh user@router "nohup /tmp/rustysquid > /tmp/cache.log 2>&1 &"
export http_proxy=http://router:3128
export https_proxy=http://router:3128
Currently uses compile-time constants:
CACHE_SIZE: 10,000 entriesMAX_RESPONSE_SIZE: 10MBCACHE_TTL: 3600 secondsPROXY_PORT: 3128# Run all tests
cargo test
# Property-based tests
cargo test --test property_tests
# Safety verification
make -f Makefile.safety safety-check
# Benchmarks
cargo bench
We're implementing minimal safety features from Squid in 6 phases:
See detailed plan for task breakdown.
On ASUS RT-AX88U router (1GB RAM, Quad-core ARM):
Unlike full Squid (200MB+ memory), RustySquid targets resource-constrained environments:
We follow PMAT methodology:
Each PR should:
make safety-checkMIT
Inspired by:
Note: This is an educational project demonstrating safe Rust practices for network programming. Use in production at your own risk.