Skip to main content

Module manifest

Module manifest 

Source
Expand description

Plugin manifest (plugin.toml) parsing and validation.

id = "example_plugin"              # ^[a-z0-9][a-z0-9_]{0,63}$
name = "Example Plugin"
version = "1.0.0"                  # semantic version
description = "Optional description shown in the Plugins panel"
repository = "https://github.com/example/example-plugin"
api = ">=1.0, <2"                  # optional eov-plugin-api requirement

[environment]                      # optional; defaults to any eov version
version = ">=1.0.0, <2.0.0"        # eov application version requirement

[icon]                             # optional, for the Plugins panel
kind = "svg"
data = "<svg xmlns='http://www.w3.org/2000/svg'/>"

[ui]                               # optional
slint = ">=1.17"                   # Slint version the .slint files need

[[slide_formats]]                  # optional, repeatable
id = "gradient"                    # ^[a-z0-9][a-z0-9_-]{0,63}$, unique here
name = "Synthetic gradient slide"  # shown in the file picker
extensions = ["gradient"]          # file extensions, without the dot
schemes = []                       # URI schemes (`omero` for omero://…)

The plugin library must be named after the id (lib<id>.so, lib<id>.dylib or <id>.dll) and sit next to plugin.toml. Unknown keys are ignored so that manifests written for newer hosts still load (an eov without slide sources runs a plugin with [[slide_formats]], without its formats).

Structs§

PluginEnvironment
Requirements on the host application.
PluginManifest
The parsed contents of a plugin.toml manifest.
PluginUi
UI requirements.
SlideFormatSpec
A slide format the plugin reads, declared so that eov knows its file extensions and URI schemes without running plugin code: the file picker, the series bar, folder scans and eov batch offer them, and opening a matching slide asks the plugin’s slide source.

Constants§

MANIFEST_FILENAME
Name of the manifest file inside each plugin directory.
MAX_SLIDE_FORMATS
Most [[slide_formats]] a manifest may declare.
RESERVED_SCHEMES
URI schemes no plugin may claim: local files and eov’s own links.

Functions§

is_contained_relative_path
Whether path is relative and stays inside its base directory (no root, drive prefix or .. component).
is_valid_plugin_id
Whether id is a valid plugin id: lowercase ASCII letters, digits and _, starting with a letter or digit, at most 64 characters.