Skip to main content

dendryform_export/
lib.rs

1//! # dendryform-export
2//!
3//! Lossy exporters for dendryform diagrams.
4//!
5//! Exports dendryform diagrams to standards-compatible formats:
6//! Structurizr DSL, Structurizr JSON, and Mermaid. These exports
7//! are lossy — dendryform's richer model is mapped onto the target
8//! format's capabilities, with `LossyWarning`s for anything that
9//! cannot be represented.
10
11/// dendryform-export is coming soon.
12pub fn version() -> &'static str {
13    env!("CARGO_PKG_VERSION")
14}
15
16#[cfg(test)]
17mod tests {
18    use super::*;
19
20    #[test]
21    fn test_version_is_set() {
22        assert_eq!(version(), "0.1.0");
23    }
24}