CommonLibrary/Library.rs
1#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
2#![allow(non_snake_case, non_camel_case_types, non_upper_case_globals)]
3
4//! # Common Crate
5//!
6//! Defines the abstract architectural core for the entire application
7//! ecosystem. It provides the foundational traits, services, and data transfer
8//! objects (DTOs) that constitute the application's public API contract.
9//!
10//! This crate enforces a clean separation of concerns by defining "what" an
11//! operation does (the service trait, e.g., `FileSystemReader`) separately
12//! from "how" it is implemented (the concrete implementation in the `Mountain`
13//! crate). This declarative, effects-based architecture ensures that
14//! application logic is composable, testable, and maintainable.
15
16// --- Core Architecture ---
17pub mod Effect;
18
19pub mod Environment;
20
21pub mod Error;
22
23pub mod Utility;
24
25// --- Service Contracts (alphabetical) ---
26pub mod Command;
27
28pub mod Configuration;
29
30pub mod CustomEditor;
31
32pub mod Debug;
33
34pub mod Diagnostic;
35
36pub mod Document;
37
38pub mod ExtensionManagement;
39
40pub mod FileSystem;
41
42pub mod IPC;
43
44pub mod Keybinding;
45
46pub mod LanguageFeature;
47
48pub mod Output;
49
50pub mod Search;
51
52pub mod Secret;
53
54pub mod SourceControlManagement;
55
56pub mod StatusBar;
57
58pub mod Storage;
59
60pub mod Synchronization;
61
62pub mod Terminal;
63
64pub mod Testing;
65
66pub mod TreeView;
67
68pub mod UserInterface;
69
70pub mod Webview;
71
72pub mod Workspace;
73
74// --- Global DTO Module ---
75//
76// A top-level module that re-exports all Data Transfer Objects (DTOs) from the
77// various service modules for convenient access across the application.
78pub mod DTO;