2 releases
Uses new Rust 2024
| 0.0.1 | Nov 15, 2025 |
|---|---|
| 0.0.0 | Feb 13, 2025 |
#123 in #allocation
110KB
2K
SLoC
MetalSSH
MetalSSH is an experimental SSH implementation with these goals:
- Protocol represented cleanly as a state machine, so that invalid states are impossible
- Sans-IO, so that the protocol may be run over any transports
- Zero-copy as much as possible, doing no allocations within the library
no_std-compatible such that the library works without a heap- Modular cryptographic backends so that may be benchmarked against each other
Tests
Run all tests:
cargo test
Run only integration tests, which hits the network:
cargo test --test integration
Benchmarks
Benchmarks use criterion and run in release mode by default.
To view an HTML landing page with the benchmarks, run this after having run the benchmarks:
open target/criterion/report/index.html
Run cipher benchmarks:
cargo bench --bench cipher
Dependencies
~61MB
~1.5M SLoC