Replace el.toml with manifest.el throughout — El manifests are El, not TOML

This commit is contained in:
Will Anderson
2026-04-29 22:48:36 -05:00
parent 2b2ca8a59e
commit f09803c317
15 changed files with 23 additions and 23 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
//! Session provider — server-side sessions stored in memory. //! Session provider — server-side sessions stored in memory.
//! //!
//! In production, sessions are stored in Redis or Engram (configured via //! 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. //! This implementation uses in-memory storage for simplicity and testing.
use crate::{AuthContext, AuthError, AuthProvider, AuthResult, AuthUser, RoleRegistry}; use crate::{AuthContext, AuthError, AuthProvider, AuthResult, AuthUser, RoleRegistry};
+4 -4
View File
@@ -4,8 +4,8 @@
/// for a key wins. Resolution order: /// for a key wins. Resolution order:
/// 1. Environment variables (highest) /// 1. Environment variables (highest)
/// 2. .env file (dev only) /// 2. .env file (dev only)
/// 3. el.toml [env.<current>] section /// 3. manifest.el [env.<current>] section
/// 4. el.toml [config] section (base) /// 4. manifest.el [config] section (base)
/// 5. Defaults defined in code (lowest) /// 5. Defaults defined in code (lowest)
use std::collections::HashMap; 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.<environment>]`. /// Reads `[config]` as the base, then overlays `[env.<environment>]`.
pub fn load_from_toml(toml_str: &str, env: &Environment) -> Result<MapSource, ConfigError> { pub fn load_from_toml(toml_str: &str, env: &Environment) -> Result<MapSource, ConfigError> {
@@ -155,7 +155,7 @@ pub fn load_from_toml(toml_str: &str, env: &Environment) -> Result<MapSource, Co
} }
} }
Ok(MapSource::from_map("el.toml", map)) Ok(MapSource::from_map("manifest.el", map))
} }
fn flatten_toml_table( fn flatten_toml_table(
+2 -2
View File
@@ -4,8 +4,8 @@
//! //!
//! 1. Environment variables (`EL_APP_NAME=...`) //! 1. Environment variables (`EL_APP_NAME=...`)
//! 2. `.env` file (development only) //! 2. `.env` file (development only)
//! 3. `el.toml` `[env.<current>]` section //! 3. `manifest.el` `[env.<current>]` section
//! 4. `el.toml` `[config]` base section //! 4. `manifest.el` `[config]` base section
//! 5. Defaults defined in code //! 5. Defaults defined in code
//! //!
//! ## Quick start //! ## Quick start
+1 -1
View File
@@ -4,7 +4,7 @@
//! on the component tree and returns the result as an HTTP response. //! on the component tree and returns the result as an HTTP response.
//! //!
//! The same component code runs server-side without any changes. Only the //! 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}; use crate::{EventHandler, PlatformBackend, PlatformError, PlatformNode, PlatformResult};
+3 -3
View File
@@ -1,4 +1,4 @@
//! Platform configuration — parsed from `el.toml`. //! Platform configuration — parsed from `manifest.el`.
/// Which platform to target for rendering. /// Which platform to target for rendering.
#[derive(Debug, Clone, PartialEq, Eq)] #[derive(Debug, Clone, PartialEq, Eq)]
@@ -20,7 +20,7 @@ pub enum PlatformTarget {
} }
impl 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<Self> { pub fn from_str(s: &str) -> Option<Self> {
match s.to_lowercase().as_str() { match s.to_lowercase().as_str() {
"web" => Some(Self::Web), "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)] #[derive(Debug, Clone)]
pub struct PlatformConfig { pub struct PlatformConfig {
pub target: PlatformTarget, pub target: PlatformTarget,
+2 -2
View File
@@ -3,7 +3,7 @@
//! The same component code produces native output for every target platform. //! The same component code produces native output for every target platform.
//! No bridge. No virtual DOM. Direct platform calls. //! No bridge. No virtual DOM. Direct platform calls.
//! //!
//! The target is chosen in `el.toml`: //! The target is chosen in `manifest.el`:
//! //!
//! ```toml //! ```toml
//! [platform] //! [platform]
@@ -50,7 +50,7 @@ pub type PlatformResult<T> = Result<T, PlatformError>;
/// The core trait every platform backend must implement. /// The core trait every platform backend must implement.
/// ///
/// All rendering paths go through this interface. Component code is identical /// 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 { pub trait PlatformBackend: Send + Sync {
/// The platform name (e.g. "web", "server", "ios"). /// The platform name (e.g. "web", "server", "ios").
fn name(&self) -> &'static str; fn name(&self) -> &'static str;
+1 -1
View File
@@ -23,7 +23,7 @@ pub struct ApplePublisher {
impl ApplePublisher { impl ApplePublisher {
pub fn new(publish_config: PublishConfig) -> PublishResult<Self> { pub fn new(publish_config: PublishConfig) -> PublishResult<Self> {
let apple_config = publish_config.apple.clone().ok_or_else(|| { 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 { Ok(Self {
apple_config, apple_config,
+1 -1
View File
@@ -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. /// App Store Connect / TestFlight configuration.
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
+1 -1
View File
@@ -19,7 +19,7 @@ pub struct GooglePublisher {
impl GooglePublisher { impl GooglePublisher {
pub fn new(publish_config: PublishConfig) -> PublishResult<Self> { pub fn new(publish_config: PublishConfig) -> PublishResult<Self> {
let google_config = publish_config.google.clone().ok_or_else(|| { 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 }) Ok(Self { google_config, publish_config })
} }
+1 -1
View File
@@ -8,7 +8,7 @@
//! el publish --beta # TestFlight + Play internal track //! el publish --beta # TestFlight + Play internal track
//! ``` //! ```
//! //!
//! Configuration in `el.toml`: //! Configuration in `manifest.el`:
//! ```toml //! ```toml
//! [publish] //! [publish]
//! version = "1.0.0" //! version = "1.0.0"
+1 -1
View File
@@ -7,7 +7,7 @@ use crate::PublishResult;
pub struct ScreenshotTarget { pub struct ScreenshotTarget {
/// Display name (e.g. "iPhone 6.7\"") /// Display name (e.g. "iPhone 6.7\"")
pub name: String, 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 id: String,
pub width: u32, pub width: u32,
pub height: u32, pub height: u32,
+1 -1
View File
@@ -1,7 +1,7 @@
//! Service binding implementations. //! Service binding implementations.
//! //!
//! Each binding protocol implements the `Binding` trait. //! 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 direct;
pub mod grpc; pub mod grpc;
+1 -1
View File
@@ -1,4 +1,4 @@
//! Service configuration — reflects `[services.*]` in `el.toml`. //! Service configuration — reflects `[services.*]` in `manifest.el`.
use crate::binding::BindingKind; use crate::binding::BindingKind;
+1 -1
View File
@@ -1,6 +1,6 @@
//! el-services — Service bindings for el-ui. //! 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 //! ```toml
//! [services.UserService] //! [services.UserService]
+2 -2
View File
@@ -5,7 +5,7 @@
//! - Styling via semantic tokens and the StyleModifier trait //! - Styling via semantic tokens and the StyleModifier trait
//! - Responsive layout: VStack/HStack that wrap automatically //! - Responsive layout: VStack/HStack that wrap automatically
//! - Localization via LocaleContext and t()/t_plural() //! - 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 //! - Secrets that never appear in logs
use std::collections::HashMap; use std::collections::HashMap;
@@ -183,7 +183,7 @@ app.debug = "true"
"#; "#;
let toml_source = load_from_toml(el_toml, &Environment::Development) 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); let mut config = Config::new(Environment::Development);
config.push_source(Box::new(toml_source)); config.push_source(Box::new(toml_source));