fresh/
lib.rs

1// Editor library - exposes all core modules for testing
2
3// Initialize i18n with translations from locales/ directory
4rust_i18n::i18n!("locales", fallback = "en");
5
6pub mod i18n;
7
8// Core types and config are always available (needed for schema generation)
9pub mod config;
10pub mod partial_config;
11pub mod types;
12
13// Runtime-only modules (require the "runtime" feature)
14#[cfg(feature = "runtime")]
15pub mod config_io;
16#[cfg(feature = "runtime")]
17pub mod session;
18#[cfg(feature = "runtime")]
19pub mod state;
20
21// Organized modules (runtime-only)
22#[cfg(feature = "runtime")]
23pub mod app;
24#[cfg(feature = "runtime")]
25pub mod input;
26#[cfg(feature = "runtime")]
27pub mod model;
28#[cfg(feature = "runtime")]
29pub mod primitives;
30#[cfg(feature = "runtime")]
31pub mod services;
32#[cfg(feature = "runtime")]
33pub mod view;