Archived
Replace el.toml with manifest.el throughout — El manifests are El, not TOML
This commit is contained in:
@@ -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};
|
||||
|
||||
|
||||
@@ -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<Self> {
|
||||
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,
|
||||
|
||||
@@ -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<T> = Result<T, PlatformError>;
|
||||
/// 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;
|
||||
|
||||
Reference in New Issue
Block a user