1mod args;
9mod command;
10mod fmt;
11mod hot;
12mod platform;
13mod update_server;
14
15#[cfg(test)]
16#[path = "../tests/mod.rs"]
17mod tests;
18
19pub use {args::*, command::*, fmt::*, hot::*, platform::*, update_server::*};
20
21#[cfg(feature = "update-server")]
22use std::collections::HashMap;
23#[cfg(feature = "update-server")]
24use std::net::AddrParseError;
25#[cfg(feature = "update-server")]
26use std::sync::{OnceLock, RwLock, RwLockReadGuard};
27use std::{
28 borrow::Cow,
29 cmp,
30 collections::{BTreeMap, btree_map},
31 env::{self, VarError},
32 ffi::{OsStr, OsString},
33 fs::{self, DirEntry, File, Metadata, OpenOptions},
34 io::{self, BufRead, BufReader, Error, ErrorKind, Write},
35 iter::Peekable,
36 net::{SocketAddr, TcpListener, TcpStream},
37 num::NonZeroUsize,
38 path::{Path, PathBuf},
39 process::{self, Child, Command, Output, Stdio},
40 str::SplitWhitespace,
41 sync::{
42 Arc, Mutex, MutexGuard,
43 atomic::{AtomicBool, AtomicU64, Ordering},
44 },
45 thread::{self, JoinHandle, Scope, ScopedJoinHandle},
46 time::{Duration, SystemTime, UNIX_EPOCH},
47};
48
49use {
50 clap::{Args, Parser, Subcommand, ValueEnum},
51 crate_cli::{UnifiedFmtReport, execute_unified_fmt, format_workspace_text_files},
52 euv_core::{
53 ClientNegotiation, DEFAULT_MAX_ARTIFACT_BYTES, DYNAMIC_EVENT_SCHEMA_V1,
54 DYNAMIC_HOST_ABI_V1, DYNAMIC_MANIFEST_SCHEMA_V1, DYNAMIC_PROTOCOL_VERSION_V1,
55 DeliveryChannelMode, DynamicReleaseError, GraphicsBackend, PlatformCapabilities,
56 PlatformKind, ReleaseActivatedEvent, ReleaseManifest, RenderConfig, RenderMode, Renderer,
57 build_partial_widget_wasm, compute_wasm_checksum, compute_wasm_signature, constant_time_eq,
58 default_track_for, is_valid_sha256_hex, sha256_hex,
59 },
60 euv_docs::{DocsBuildOptions, GeneratedSiteReport, build_docs_bundle},
61 lombok_macros::{Data, Getter, New},
62 serde::{Deserialize, Serialize},
63 serde_json::{from_str, to_string, to_string_pretty},
64 tokio::runtime::{Builder, Runtime},
65};
66#[cfg(feature = "update-server")]
67use {
68 euv_core::SSE_EVENT_RELEASE_ACTIVATED,
69 hyperlane::{
70 CACHE_CONTROL, CONTENT_TYPE, Context, Method, ResponseData, ResponseError, Server,
71 ServerConfig, ServerControlHook, ServerError, ServerHook, Status, Stream,
72 tokio::{
73 runtime, select, task,
74 time::{Instant, Interval, MissedTickBehavior, interval},
75 },
76 },
77 hyperlane_plugin_sse::{SseConfig, SseError, SseEvent, SseHub, SseStream, SseSubscription},
78 serde_json::to_vec,
79};