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#[cfg(feature = "plugins")]
9pub mod v8_init;
10
11// Core types and config are always available (needed for schema generation)
12pub mod config;
13pub mod partial_config;
14pub mod types;
15
16// Runtime-only modules (require the "runtime" feature)
17#[cfg(feature = "runtime")]
18pub mod config_io;
19#[cfg(feature = "runtime")]
20pub mod session;
21#[cfg(feature = "runtime")]
22pub mod state;
23
24// Organized modules (runtime-only)
25#[cfg(feature = "runtime")]
26pub mod app;
27#[cfg(feature = "runtime")]
28pub mod input;
29#[cfg(feature = "runtime")]
30pub mod model;
31#[cfg(feature = "runtime")]
32pub mod primitives;
33#[cfg(feature = "runtime")]
34pub mod services;
35#[cfg(feature = "runtime")]
36pub mod view;