1 stable release
| 1.0.0 | Dec 27, 2025 |
|---|
#312 in Text processing
157 downloads per month
Used in aasvg-cli
200KB
4K
SLoC
aasvg-rs
A Rust port of aasvg, which converts ASCII art diagrams into SVG.
CLI Usage
cargo install aasvg-cli
# Convert a file
aasvg input.txt -o output.svg
# Or use stdin/stdout
cat input.txt | aasvg > output.svg
Library Usage
use aasvg::render;
let diagram = r#"
+-----+ +-----+
| |---->| |
+-----+ +-----+
"#;
let svg = render(diagram);
The output SVG automatically supports light and dark mode via CSS prefers-color-scheme.
Attribution
This project is a Rust port of Martin Thomson's aasvg, which itself uses the diagram rendering code from Morgan McGuire's Markdeep.
Related projects:
- goat - A Go implementation that reimplements the Markdeep algorithm
License
BSD-2-Clause, matching the original aasvg license.