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 std::{
16    error::Error,
17    ffi::OsStr,
18    fmt::{Display, Formatter},
19    string::FromUtf8Error,
20};
21pub use {build::*, error::*, fmt::*, hmr::*, logger::*, mode::*, server::*};
22
23use {
24    clap::Parser,
25    color_output::*,
26    hyperlane::*,
27    ignore::gitignore::{Gitignore, GitignoreBuilder},
28    log::SetLoggerError,
29    lombok_macros::*,
30    notify::{Config, Event, RecommendedWatcher, RecursiveMode, Watcher},
31    qrcode::{QrCode, render::unicode::Dense1x2},
32    serde::Serialize,
33    std::{
34        collections::HashMap,
35        ffi,
36        fmt::Arguments,
37        io,
38        net::{IpAddr, Ipv4Addr},
39        path::{Component, Path, PathBuf},
40        process::{Output, Stdio},
41        slice::Iter,
42        sync::{Arc, OnceLock},
43        time::Duration,
44    },
45    tokio::{
46        fs::{
47            ReadDir, canonicalize, create_dir_all, metadata, read, read_dir, read_to_string,
48            remove_dir_all, remove_file, write,
49        },
50        process::Command,
51        spawn,
52        sync::{
53            RwLock, RwLockWriteGuard, broadcast,
54            mpsc::{Receiver, Sender, channel},
55        },
56        time::{Interval, interval, sleep},
57    },
58};