Skip to main content

lune/
lib.rs

1#[cfg(all(target_os = "linux", feature = "desktop"))]
2mod desktop;
3#[cfg(target_os = "linux")]
4mod geometry;
5#[cfg(all(target_os = "linux", feature = "wgpu-renderer"))]
6mod gpu;
7#[cfg(target_os = "linux")]
8mod raster;
9#[cfg(target_os = "linux")]
10mod session;
11
12#[cfg(all(target_os = "linux", feature = "desktop"))]
13#[doc(hidden)]
14pub use desktop::bench as desktop_bench;
15#[cfg(all(target_os = "linux", feature = "desktop"))]
16pub use desktop::{
17    cli::{
18        CliAction, CliError, HELP_TEXT, LaunchOptions, MsgAction, VERSION_TEXT,
19        parse_env as parse_cli,
20    },
21    ipc::{IpcCommand, list_sockets as list_ipc_sockets, send_command as send_ipc_command},
22    logging::{active_log_path, init as init_logging},
23    run as run_desktop,
24};
25#[cfg(target_os = "linux")]
26pub use geometry::{GridGeometry, PixelRect};
27#[cfg(all(target_os = "linux", feature = "wgpu-renderer"))]
28pub use gpu::{BackgroundPrepareError, CellBackgroundRenderer, GraphicsLayer, ImageRenderer};
29#[cfg(target_os = "linux")]
30pub use raster::{CoverageMask, GlyphMask, GlyphSource, PixelRegion, RasterSurface, RasterText};
31#[cfg(target_os = "linux")]
32pub use session::{
33    BackgroundRect, BatchRun, CursorChange, CursorGlyph, CursorPaint, MAX_INPUT_BYTES,
34    MAX_PASTE_BYTES, MouseInputOutcome, PaintBatch, PaintCommand, PaintError, PreparedPresentation,
35    PresentationDamage, PresentationFrame, PresentationRun, PresentationStyle, PresentationTracker,
36    PresentedCursor, PtyInterest, RowDamage, Session, SessionInterests, SessionReady, WaitOutcome,
37};