| Crates.io | ruchy-cli |
| lib.rs | ruchy-cli |
| version | 0.11.3 |
| created_at | 2025-08-16 02:17:36.683622+00 |
| updated_at | 2025-08-23 10:27:42.748135+00 |
| description | DEPRECATED: Install 'ruchy' package instead. This package is kept for backward compatibility only. |
| homepage | |
| repository | https://github.com/paiml/ruchy |
| max_upload_size | |
| id | 1797771 |
| size | 177,667 |
The world's first programming language with built-in formal verification and automatic BigO complexity analysis. A functional language that transpiles to idiomatic Rust, featuring revolutionary development tools that don't exist in any other language.
# Install from crates.io
cargo install ruchy
# Run a one-liner
ruchy -e "println('Hello, World!')"
# Run with JSON output
ruchy -e "2 + 2" --format json
# Start the REPL
ruchy repl
# Run a script
ruchy run script.ruchy
# Enhanced Testing (NEW in v0.9.12)
ruchy test examples/ --coverage --format json
ruchy test --coverage --coverage-format html
// Pattern matching with exhaustiveness checking
match value {
0 => "zero",
1..=10 => "small",
_ => "large"
}
// String interpolation
let name = "Ruchy"
println(f"Hello from {name}!")
// Functional programming
[1, 2, 3, 4, 5]
.map(|x| x * 2)
.filter(|x| x > 5)
.reduce(0, |acc, x| acc + x)
// Loop expressions
for i in 1..=5 {
println(i)
}
// Block expressions return values
let result = {
let a = 10
let b = 20
a + b // Returns 30
}
# Run tests with coverage
ruchy test examples/ --coverage --parallel
# Generate HTML coverage report
ruchy test --coverage --coverage-format html
# CI/CD friendly output
ruchy test --format junit --coverage --coverage-format json
Ruchy provides the world's most advanced development tooling, with groundbreaking features that don't exist in any other programming language:
ruchy provability)World's First: Mathematical correctness guarantees in a system programming language.
# Basic provability analysis
ruchy provability script.ruchy
# Full formal verification
ruchy provability script.ruchy --verify --verbose
# Contract verification (pre/post-conditions)
ruchy provability script.ruchy --contracts
# Loop invariant checking
ruchy provability script.ruchy --invariants
# Termination analysis
ruchy provability script.ruchy --termination
# Memory safety & bounds checking
ruchy provability script.ruchy --bounds
Features:
ruchy runtime)World's First: Automatic BigO algorithmic complexity detection.
# Basic performance metrics
ruchy runtime script.ruchy
# Execution profiling with hot-spot detection
ruchy runtime script.ruchy --profile --verbose
# Automatic BigO complexity analysis
ruchy runtime script.ruchy --bigo
# Benchmark execution
ruchy runtime script.ruchy --bench
# Compare performance between files
ruchy runtime script.ruchy --compare other.ruchy
# Memory usage analysis
ruchy runtime script.ruchy --memory
Features:
ruchy ast)Comprehensive AST inspection and analysis tools.
# Pretty-printed AST
ruchy ast script.ruchy
# JSON output for tooling
ruchy ast script.ruchy --json --output ast.json
# Visual AST graph (DOT format)
ruchy ast script.ruchy --graph --verbose
# Complexity metrics
ruchy ast script.ruchy --metrics
# Symbol table analysis
ruchy ast script.ruchy --symbols
# Dependency analysis
ruchy ast script.ruchy --deps
Features:
ruchy fmt)Professional code formatting with configurable styles.
# Format a single file
ruchy fmt script.ruchy
# Format all project files
ruchy fmt --all
# Check formatting (CI mode)
ruchy fmt script.ruchy --check
# Custom configuration
ruchy fmt script.ruchy --line-width 100 --indent 2
ruchy lint)Grammar-based code analysis with auto-fix capabilities.
# Basic linting
ruchy lint script.ruchy
# Auto-fix issues
ruchy lint script.ruchy --fix
# Strict mode (all warnings as errors)
ruchy lint --strict
# Specific rule categories
ruchy lint --rules unused,style,complexity
ruchy test)Professional testing framework with coverage analysis.
# Run all tests with coverage
ruchy test --coverage
# Generate HTML coverage report
ruchy test --coverage --coverage-format html
# Parallel test execution
ruchy test --parallel
# Set coverage threshold
ruchy test --coverage --threshold 80
| Feature | Ruchy | Deno | Go | Rust |
|---|---|---|---|---|
| Formal Verification | โ Built-in | โ | โ | โ |
| Automatic BigO Analysis | โ Built-in | โ | โ | โ |
| Mathematical Provability | โ Built-in | โ | โ | โ |
| AST Visualization | โ Built-in | โ | โ | โ |
| Coverage Analysis | โ Built-in | โ | โ | ๐ง External |
| Auto-formatting | โ Built-in | โ | โ | โ |
The Ruchy interpreter showcases advanced Rust patterns and optimizations. Read the detailed Interpreter Architecture to learn about:
Instant deadlines and memory tracking&str and arena allocatorsproptest for invariant verificationAtomicUsizequote! macrossyn and proc-macro2Tests: 271 passing (library)
34 passing (interpreter core)
10 property tests
10 fuzz tests
33 doctests
Code Coverage: >80%
Complexity: All functions <50 (enforced by PMAT)
Performance: 50MB/s parsing throughput
# Run tests
make test
# Check quality gates
make lint
# Run benchmarks
make bench
# Generate documentation
cargo doc --open
All commits must pass:
See CLAUDE.md for the full development protocol.
cargo install ruchy ruchy-cli
git clone https://github.com/yourusername/ruchy
cd ruchy
cargo build --release
cargo install --path . --path ruchy-cli
Contributions welcome! Please read CONTRIBUTING.md first.
Key principles:
MIT - See LICENSE for details.
Made with ๐ฆ in Rust | Documentation | Crates.io