1
2
3
4
5
6
7
8
9
10
11
12
13
14
pub mod errors;
pub mod filetree;
pub mod node;

pub use errors::Error;
pub use filetree::Filetree;

#[cfg(target_family = "wasm")]
#[wasm_bindgen::prelude::wasm_bindgen]
pub fn filetree_block(s: String) -> Result<String, Error> {
    let filetree: Filetree = s.parse()?;
    let res = filetree.to_string();
    Ok(res)
}