pub struct ExtensionManifest {
pub protocol_version: u32,
pub runtime: ExtensionRuntime,
pub command: String,
pub setup: Option<String>,
pub prebuilt: HashMap<String, PrebuiltAsset>,
pub args: Vec<String>,
pub permissions: Vec<String>,
pub hooks: Vec<HookSubscription>,
pub config: Vec<ExtensionConfigEntry>,
}Expand description
Extension declaration inside a plugin manifest.
Fields§
§protocol_version: u32Extension protocol version. Defaults to v1 for pre-versioned manifests.
runtime: ExtensionRuntimeRuntime type (only “process” in phase 1).
command: StringCommand to start the extension process.
setup: Option<String>Optional path to a post-install setup script (relative to plugin
root). When present, the marketplace install flow runs this
script after the plugin source is in place — used by source-shipped
extensions (e.g. Rust binaries) that need to compile a binary
before Self::command resolves. Same security model as
provides.sidecar.setup (path must stay inside the plugin dir;
see crate::skills::post_install for the runner).
prebuilt: HashMap<String, PrebuiltAsset>Optional per-host-triple prebuilt asset map. When the installer
can’t find Self::command on disk after the source clone, it
looks up the current host’s triple (e.g. linux-x86_64,
darwin-arm64, windows-x86_64 — see
crate::skills::post_install::host_triple) in this map and,
if a matching PrebuiltAsset exists, downloads and extracts
it into the plugin dir as a fast path that skips
Self::setup. Empty by default.
args: Vec<String>Arguments to pass to the command.
permissions: Vec<String>Permissions requested by the extension.
hooks: Vec<HookSubscription>Hooks the extension wants to subscribe to.
config: Vec<ExtensionConfigEntry>Non-secret config declarations resolved by Synaps and passed to initialize.
Implementations§
Trait Implementations§
Source§impl Clone for ExtensionManifest
impl Clone for ExtensionManifest
Source§fn clone(&self) -> ExtensionManifest
fn clone(&self) -> ExtensionManifest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ExtensionManifest
impl Debug for ExtensionManifest
Source§impl<'de> Deserialize<'de> for ExtensionManifest
impl<'de> Deserialize<'de> for ExtensionManifest
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>,
Auto Trait Implementations§
impl Freeze for ExtensionManifest
impl RefUnwindSafe for ExtensionManifest
impl Send for ExtensionManifest
impl Sync for ExtensionManifest
impl Unpin for ExtensionManifest
impl UnsafeUnpin for ExtensionManifest
impl UnwindSafe for ExtensionManifest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.