plantuml_server_client_rs/
lib.rs

1#![doc = include_str!("../docs/include/about.md")]
2//!
3//! # Getting Started
4//!
5//! Request to [`http://www.plantuml.com/plantuml/`](http://www.plantuml.com/plantuml/).
6//!
7//! ```shell
8//! cargo install plantuml-server-client-rs
9//! {
10//!   echo '@startuml'
11//!   echo 'Bob -> Alice : hello'
12//!   echo '@enduml'
13//! } | plantuml-server-client > out.svg
14//! ```
15//!
16//! # Usages
17//!
18//! See [`README (crates.io)`](https://crates.io/crates/plantuml-server-client-rs)
19
20mod client;
21mod collector;
22mod config;
23mod encode;
24mod format;
25mod locate;
26mod logger;
27mod metadata;
28mod mode;
29mod request;
30mod url;
31
32pub use client::Client;
33pub use collector::{CollectedContainer, Collector};
34pub use config::Config;
35pub use config::args::Args;
36pub use config::file::FileConfig;
37pub use format::Format;
38pub use locate::Locate;
39pub use logger::init_logger;
40pub use metadata::{
41    IncludesMetadata, IncludesMetadataItem, Metadata, MetadataItem, MetadataV2, MetadataVersion,
42    PlantUmlMetadata, PlantUmlMetadataItem,
43};
44pub use mode::Mode;
45pub use request::method::Method;
46pub use url::{URL_PREFIX, UrlBuilder};
47
48/// The package name from Cargo.toml: [`plantuml-server-client-rs`](https://docs.rs/plantuml-server-client-rs/)
49pub const PKG_NAME: &str = env!("CARGO_PKG_NAME");
50/// The package version from Cargo.toml
51pub const PKG_VERSION: &str = env!("CARGO_PKG_VERSION");