Crates.io | wsdclient |
lib.rs | wsdclient |
version | 0.0.0 |
source | src |
created_at | 2019-04-23 03:39:47.699414 |
updated_at | 2019-04-23 03:39:47.699414 |
description | Library and command-line tool for working with WebSequenceDiagrams public API. |
homepage | |
repository | https://github.com/mkl-/wsdclient |
max_upload_size | |
id | 129584 |
size | 34,720 |
Crate for working with https://www.websequencediagrams.com/ public RESTful API This service allows to create sequence diagrams from simple text. Note: this library is a simple wrapper around the API. Some features of this service require premium subscription (like export to pdf format) Features supported by this library
This crate contains command line tool for accessing websequencediagram API
$ wsdclient my_diag.wsd -o my.png
Example:
use wsdclient::{get_diagram};
use std::fs::File;
use std::io::Write;
fn main(){
let spec = "A->B: text1";
let rez = get_diagram(spec, &Default::default()).unwrap();
File::create("simple.png").unwrap()
.write_all(&rez.diagram).unwrap();
}