| Crates.io | rusty_plantuml_encoder |
| lib.rs | rusty_plantuml_encoder |
| version | 0.0.3 |
| created_at | 2024-08-08 22:38:07.97517+00 |
| updated_at | 2024-08-08 22:46:54.044178+00 |
| description | A package for encoding and compressing text for plantuml diagram |
| homepage | |
| repository | https://github.com/ansonhkg/rusty_plantuml_encoder |
| max_upload_size | |
| id | 1330011 |
| size | 3,972 |
A Rust library for encoding PlantUML diagram code, generating compressed strings for use in PlantUML image URLs.
Add this to your Cargo.toml:
[dependencies]
plantuml_encoder = "0.0.3"
use rusty_plantuml_encoder::encodep;
fn main() {
let diagram = "@startuml
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response
@enduml";
let encoded = encodep(diagram);
println!("Encoded URL: http://www.plantuml.com/plantuml/img/{}", encoded);
}
This encoder is specifically designed for PlantUML diagrams and may not be suitable for general-purpose encoding or encryption.