1#[cfg(not(target_arch = "wasm32"))]
8mod bundle;
9mod codec;
10mod generator;
11mod model;
12mod parser;
13mod viewer;
14
15#[cfg(test)]
16#[path = "../tests/mod.rs"]
17mod tests;
18
19#[cfg(not(target_arch = "wasm32"))]
20pub use bundle::*;
21pub use {codec::*, generator::*, model::*, parser::*, viewer::*};
22
23pub(crate) use parser::{
24 deduplicate_slug, heading_level_num, load_doc_site_excluding, section_sort_rank,
25 should_skip_dir, slugify,
26};
27
28#[cfg(target_arch = "wasm32")]
29use std::cell::{RefCell, RefMut};
30use std::{
31 borrow::Cow,
32 cell::Cell,
33 cmp::{Ordering, Reverse},
34 collections::{BTreeMap, BTreeSet, BinaryHeap, HashMap},
35 f32::consts::{FRAC_PI_2, PI, TAU},
36 ffi::{OsStr, OsString},
37 fmt::{self, Write},
38 fs::{self, DirEntry},
39 io::{self, Error, ErrorKind},
40 iter::Peekable,
41 mem::take,
42 path::{Components, Path, PathBuf},
43 rc::Rc,
44 str::Chars,
45};
46#[cfg(not(target_arch = "wasm32"))]
47use std::{
48 env,
49 process::{Command, ExitStatus},
50};
51use {
52 chrono::{DateTime, Utc},
53 euv::*,
54 euv_ui::*,
55 lombok_macros::{Data, Getter, New},
56 pulldown_cmark::{
57 Alignment, BlockQuoteKind, CodeBlockKind, CowStr, Event, HeadingLevel, Options, Parser,
58 Tag, TagEnd,
59 },
60 serde::{Deserialize, Serialize},
61 serde_json::{Value, to_string, to_string_pretty},
62 serde_yaml::from_str,
63};
64#[cfg(target_arch = "wasm32")]
65use {
66 js_sys::{Function, Promise, Reflect},
67 wasm_bindgen::{JsCast, JsValue, closure::Closure},
68 wasm_bindgen_futures::{JsFuture, spawn_local},
69 web_sys::{Document, HtmlCanvasElement, MediaQueryList, Window, window},
70};