From f09803c317b0cdde42294596f9fab972d14cff3e Mon Sep 17 00:00:00 2001 From: Will Anderson Date: Wed, 29 Apr 2026 22:48:36 -0500 Subject: [PATCH] =?UTF-8?q?Replace=20el.toml=20with=20manifest.el=20throug?= =?UTF-8?q?hout=20=E2=80=94=20El=20manifests=20are=20El,=20not=20TOML?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/el-auth/src/session.rs | 2 +- crates/el-config/src/config.rs | 8 ++++---- crates/el-config/src/lib.rs | 4 ++-- crates/el-platform/src/backends/server.rs | 2 +- crates/el-platform/src/config.rs | 6 +++--- crates/el-platform/src/lib.rs | 4 ++-- crates/el-publish/src/apple.rs | 2 +- crates/el-publish/src/config.rs | 2 +- crates/el-publish/src/google.rs | 2 +- crates/el-publish/src/lib.rs | 2 +- crates/el-publish/src/screenshot.rs | 2 +- crates/el-services/src/binding/mod.rs | 2 +- crates/el-services/src/config.rs | 2 +- crates/el-services/src/lib.rs | 2 +- examples/profile-card/src/main.rs | 4 ++-- 15 files changed, 23 insertions(+), 23 deletions(-) diff --git a/crates/el-auth/src/session.rs b/crates/el-auth/src/session.rs index 90966fe..cc35eb6 100644 --- a/crates/el-auth/src/session.rs +++ b/crates/el-auth/src/session.rs @@ -1,7 +1,7 @@ //! Session provider — server-side sessions stored in memory. //! //! In production, sessions are stored in Redis or Engram (configured via -//! `session_store = "redis"` or `session_store = "engram"` in `el.toml`). +//! `session_store = "redis"` or `session_store = "engram"` in `manifest.el`). //! This implementation uses in-memory storage for simplicity and testing. use crate::{AuthContext, AuthError, AuthProvider, AuthResult, AuthUser, RoleRegistry}; diff --git a/crates/el-config/src/config.rs b/crates/el-config/src/config.rs index 07e06e7..13c0c42 100644 --- a/crates/el-config/src/config.rs +++ b/crates/el-config/src/config.rs @@ -4,8 +4,8 @@ /// for a key wins. Resolution order: /// 1. Environment variables (highest) /// 2. .env file (dev only) -/// 3. el.toml [env.] section -/// 4. el.toml [config] section (base) +/// 3. manifest.el [env.] section +/// 4. manifest.el [config] section (base) /// 5. Defaults defined in code (lowest) use std::collections::HashMap; @@ -129,7 +129,7 @@ impl Config { } } -/// Load config from an `el.toml` string. +/// Load config from an `manifest.el` string. /// /// Reads `[config]` as the base, then overlays `[env.]`. pub fn load_from_toml(toml_str: &str, env: &Environment) -> Result { @@ -155,7 +155,7 @@ pub fn load_from_toml(toml_str: &str, env: &Environment) -> Result]` section -//! 4. `el.toml` `[config]` base section +//! 3. `manifest.el` `[env.]` section +//! 4. `manifest.el` `[config]` base section //! 5. Defaults defined in code //! //! ## Quick start diff --git a/crates/el-platform/src/backends/server.rs b/crates/el-platform/src/backends/server.rs index d6e0904..8f2f7d5 100644 --- a/crates/el-platform/src/backends/server.rs +++ b/crates/el-platform/src/backends/server.rs @@ -4,7 +4,7 @@ //! on the component tree and returns the result as an HTTP response. //! //! The same component code runs server-side without any changes. Only the -//! backend (chosen by `el.toml`) differs. +//! backend (chosen by `manifest.el`) differs. use crate::{EventHandler, PlatformBackend, PlatformError, PlatformNode, PlatformResult}; diff --git a/crates/el-platform/src/config.rs b/crates/el-platform/src/config.rs index 3d3587d..5794491 100644 --- a/crates/el-platform/src/config.rs +++ b/crates/el-platform/src/config.rs @@ -1,4 +1,4 @@ -//! Platform configuration — parsed from `el.toml`. +//! Platform configuration — parsed from `manifest.el`. /// Which platform to target for rendering. #[derive(Debug, Clone, PartialEq, Eq)] @@ -20,7 +20,7 @@ pub enum PlatformTarget { } impl PlatformTarget { - /// Parse from the string value used in `el.toml`. + /// Parse from the string value used in `manifest.el`. pub fn from_str(s: &str) -> Option { match s.to_lowercase().as_str() { "web" => Some(Self::Web), @@ -53,7 +53,7 @@ impl PlatformTarget { } } -/// Full platform configuration, reflecting the `[platform]` section of `el.toml`. +/// Full platform configuration, reflecting the `[platform]` section of `manifest.el`. #[derive(Debug, Clone)] pub struct PlatformConfig { pub target: PlatformTarget, diff --git a/crates/el-platform/src/lib.rs b/crates/el-platform/src/lib.rs index 014aaf4..9c7228b 100644 --- a/crates/el-platform/src/lib.rs +++ b/crates/el-platform/src/lib.rs @@ -3,7 +3,7 @@ //! The same component code produces native output for every target platform. //! No bridge. No virtual DOM. Direct platform calls. //! -//! The target is chosen in `el.toml`: +//! The target is chosen in `manifest.el`: //! //! ```toml //! [platform] @@ -50,7 +50,7 @@ pub type PlatformResult = Result; /// The core trait every platform backend must implement. /// /// All rendering paths go through this interface. Component code is identical -/// across targets — only the backend chosen by `el.toml` differs. +/// across targets — only the backend chosen by `manifest.el` differs. pub trait PlatformBackend: Send + Sync { /// The platform name (e.g. "web", "server", "ios"). fn name(&self) -> &'static str; diff --git a/crates/el-publish/src/apple.rs b/crates/el-publish/src/apple.rs index fe3f345..3e499bd 100644 --- a/crates/el-publish/src/apple.rs +++ b/crates/el-publish/src/apple.rs @@ -23,7 +23,7 @@ pub struct ApplePublisher { impl ApplePublisher { pub fn new(publish_config: PublishConfig) -> PublishResult { let apple_config = publish_config.apple.clone().ok_or_else(|| { - PublishError::Config("no [publish.apple] section in el.toml".into()) + PublishError::Config("no [publish.apple] section in manifest.el".into()) })?; Ok(Self { apple_config, diff --git a/crates/el-publish/src/config.rs b/crates/el-publish/src/config.rs index b023395..b9d113d 100644 --- a/crates/el-publish/src/config.rs +++ b/crates/el-publish/src/config.rs @@ -1,4 +1,4 @@ -//! Publish configuration — parsed from the `[publish]` section of `el.toml`. +//! Publish configuration — parsed from the `[publish]` section of `manifest.el`. /// App Store Connect / TestFlight configuration. #[derive(Debug, Clone)] diff --git a/crates/el-publish/src/google.rs b/crates/el-publish/src/google.rs index a65ea69..497952c 100644 --- a/crates/el-publish/src/google.rs +++ b/crates/el-publish/src/google.rs @@ -19,7 +19,7 @@ pub struct GooglePublisher { impl GooglePublisher { pub fn new(publish_config: PublishConfig) -> PublishResult { let google_config = publish_config.google.clone().ok_or_else(|| { - PublishError::Config("no [publish.google] section in el.toml".into()) + PublishError::Config("no [publish.google] section in manifest.el".into()) })?; Ok(Self { google_config, publish_config }) } diff --git a/crates/el-publish/src/lib.rs b/crates/el-publish/src/lib.rs index 4ebbead..04e8318 100644 --- a/crates/el-publish/src/lib.rs +++ b/crates/el-publish/src/lib.rs @@ -8,7 +8,7 @@ //! el publish --beta # TestFlight + Play internal track //! ``` //! -//! Configuration in `el.toml`: +//! Configuration in `manifest.el`: //! ```toml //! [publish] //! version = "1.0.0" diff --git a/crates/el-publish/src/screenshot.rs b/crates/el-publish/src/screenshot.rs index 5a06ca0..66048e6 100644 --- a/crates/el-publish/src/screenshot.rs +++ b/crates/el-publish/src/screenshot.rs @@ -7,7 +7,7 @@ use crate::PublishResult; pub struct ScreenshotTarget { /// Display name (e.g. "iPhone 6.7\"") pub name: String, - /// Target identifier used in el.toml (e.g. "iphone-6.7") + /// Target identifier used in manifest.el (e.g. "iphone-6.7") pub id: String, pub width: u32, pub height: u32, diff --git a/crates/el-services/src/binding/mod.rs b/crates/el-services/src/binding/mod.rs index e0c3246..04ea5e8 100644 --- a/crates/el-services/src/binding/mod.rs +++ b/crates/el-services/src/binding/mod.rs @@ -1,7 +1,7 @@ //! Service binding implementations. //! //! Each binding protocol implements the `Binding` trait. -//! The proxy uses whatever binding is configured in `el.toml`. +//! The proxy uses whatever binding is configured in `manifest.el`. pub mod direct; pub mod grpc; diff --git a/crates/el-services/src/config.rs b/crates/el-services/src/config.rs index e0b4e32..b10ee22 100644 --- a/crates/el-services/src/config.rs +++ b/crates/el-services/src/config.rs @@ -1,4 +1,4 @@ -//! Service configuration — reflects `[services.*]` in `el.toml`. +//! Service configuration — reflects `[services.*]` in `manifest.el`. use crate::binding::BindingKind; diff --git a/crates/el-services/src/lib.rs b/crates/el-services/src/lib.rs index 63dd0b3..0e2eebd 100644 --- a/crates/el-services/src/lib.rs +++ b/crates/el-services/src/lib.rs @@ -1,6 +1,6 @@ //! el-services — Service bindings for el-ui. //! -//! Write once. Bind to any protocol. Change the binding in `el.toml`. +//! Write once. Bind to any protocol. Change the binding in `manifest.el`. //! //! ```toml //! [services.UserService] diff --git a/examples/profile-card/src/main.rs b/examples/profile-card/src/main.rs index 83a4105..7fd0d97 100644 --- a/examples/profile-card/src/main.rs +++ b/examples/profile-card/src/main.rs @@ -5,7 +5,7 @@ //! - Styling via semantic tokens and the StyleModifier trait //! - Responsive layout: VStack/HStack that wrap automatically //! - Localization via LocaleContext and t()/t_plural() -//! - Configuration from el.toml / env vars +//! - Configuration from manifest.el / env vars //! - Secrets that never appear in logs use std::collections::HashMap; @@ -183,7 +183,7 @@ app.debug = "true" "#; let toml_source = load_from_toml(el_toml, &Environment::Development) - .expect("el.toml should be valid"); + .expect("manifest.el should be valid"); let mut config = Config::new(Environment::Development); config.push_source(Box::new(toml_source));