Skip to main content

euv_cli/
lib.rs

1//! euv CLI
2//!
3//! The official CLI tool for the euv UI framework,
4//! providing run/build/fmt modes with hot reload and
5//! wasm-pack integration.
6
7mod build;
8mod error;
9mod fmt;
10mod hmr;
11mod logger;
12mod mode;
13mod server;
14
15pub use {build::*, error::*, fmt::*, hmr::*, logger::*, mode::*, server::*};
16
17pub use minify_js::{Session, TopLevelMode, minify};
18
19pub use std::{
20    error::Error,
21    ffi::OsStr,
22    fmt::{Display, Formatter},
23    io::Error as IoError,
24    string::FromUtf8Error,
25};
26
27use std::{
28    collections::HashMap,
29    ffi,
30    fmt::Arguments,
31    io,
32    net::{IpAddr, Ipv4Addr},
33    path::{Component, Path, PathBuf},
34    process::{Output, Stdio},
35    slice::Iter,
36    sync::{Arc, OnceLock},
37    time::Duration,
38};
39
40use {
41    clap::Parser,
42    color_output::*,
43    hyperlane::*,
44    ignore::gitignore::{Gitignore, GitignoreBuilder},
45    log::SetLoggerError,
46    lombok_macros::*,
47    notify::{Config, Event, RecommendedWatcher, RecursiveMode, Watcher},
48    qrcode::{QrCode, render::unicode::Dense1x2},
49    serde::Serialize,
50    tokio::{
51        fs::{
52            ReadDir, canonicalize, create_dir_all, metadata, read, read_dir, read_to_string,
53            remove_dir_all, remove_file, write,
54        },
55        process::Command,
56        spawn,
57        sync::{
58            RwLock, RwLockWriteGuard, broadcast,
59            mpsc::{Receiver, Sender, channel},
60        },
61        time::{Interval, interval, sleep},
62    },
63};