| Crates.io | text-tags |
| lib.rs | text-tags |
| version | 0.1.0 |
| created_at | 2025-07-13 18:04:18.051877+00 |
| updated_at | 2025-07-13 18:04:18.051877+00 |
| description | A lightweight, text-tag markup parser |
| homepage | |
| repository | https://github.com/swamp/swamp |
| max_upload_size | |
| id | 1750671 |
| size | 14,949 |
A lightweight Rust crate for parsing text-tags.
[tag arg1 arg2=val2 ...]content[/tag]key=value form.[b]Bold text[/b]
[i]Italic text[/i]
[font Arial size=24]Text[/font] -> font name is "Arial"[color #ff00aa a=0.8]Colored[/color] -> hex #ff00aa, alpha 0.8[sprite 3 index=5] -> atlas 3, index=5[font name="Comic Sans" size=20 weight=700]
[color r=1.0 g=0.2 b=0.2]
val=42pi=3.14enabled=truecolor=#aabbccmode=wraplabel="Hello World"This is [font Arial size=18]rendered[/font] with [color #00ff00]green[/color] text,
and an icon: [sprite atlas=1 index=2].
in Cargo.toml:
[dependencies]
text-tags = "0.1.0"