![ga-svg] ![crates-svg] ![docs-svg] ![codecov-svg] ![deps-svg]
It encodes and decodes text plantuml diagrams to facilitate communication of them through URL.
Consider the next plain text plantuml diagram:
plantuml
@startuml
PUML -> RUST: HELLO
@enduml
It can be encoded to 0IO0sVz0StHXSdHrRMmAK5LDJ20jFY1ILLDKEY18HKnCJo0AG6LkP7LjR000
and with the help of the plantuml server (https://www.plantuml.com/plantuml/uml/
) it can be shared through URL.
Also, it can be decoded in the opposite direction.
Plantuml declares support for the following compression algorithms:
But in fact, plantuml supports only deflate
and hex
(brotli
is turned off). So the crate supports only deflate
and hex
too.
In order to use this crate, you have to add it under [dependencies]
to your Cargo.toml
:
toml
[dependencies]
plantuml_encoding = "0.1.0"