pub struct RuntimeConfig {
pub entry: Option<String>,
pub requires: BTreeMap<String, String>,
}Fields§
§entry: Option<String>Entrypoint relative to plugin dir. Omit it — see resolve_entry.
requires: BTreeMap<String, String>Optional declared runtimes the plugin needs (python, uv, …).
Used by lowfat plugin doctor to verify availability.
Implementations§
Source§impl RuntimeConfig
impl RuntimeConfig
Sourcepub fn resolve_entry(&self, base_dir: &Path) -> String
pub fn resolve_entry(&self, base_dir: &Path) -> String
Resolve the entrypoint filename for a plugin rooted at base_dir.
An explicit entry always wins. Otherwise auto-detect: prefer
filter.lf (the format for new plugins), falling back to filter.sh
so pre-.lf shell plugins keep loading without a manifest change.
Trait Implementations§
Source§impl Debug for RuntimeConfig
impl Debug for RuntimeConfig
Source§impl Default for RuntimeConfig
impl Default for RuntimeConfig
Source§fn default() -> RuntimeConfig
fn default() -> RuntimeConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RuntimeConfig
impl<'de> Deserialize<'de> for RuntimeConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RuntimeConfig
impl RefUnwindSafe for RuntimeConfig
impl Send for RuntimeConfig
impl Sync for RuntimeConfig
impl Unpin for RuntimeConfig
impl UnsafeUnpin for RuntimeConfig
impl UnwindSafe for RuntimeConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more