Skip to content

[Feature]: A Rust process plugin template, beside the Python one #909

Closed

Description

@Wolren

Idea: a Rust process plugin template, beside the Python one

There are two plugin templates: rustgis-plugin-template for Rust and
rustgis-python-plugin-template for Python. Only the Python one targets "runtime": "process", so
a Rust author who needs a native program has to write the process protocol by hand from
docs/plugins.md. The Python template covers process plugins, but an author who wants a single
binary and no Python runtime has no starting point.

Idea

Add a Rust process plugin template beside the Python one, so a Rust author starts from a program
that already runs and edits the manifest instead of re-deriving the protocol.

Why a process plugin at all

WebAssembly is the right default: sandboxed, and it runs in the app, on the command line and in the
web app. Some plugins cannot fit there:

  • native libraries such as GDAL, GEOS, PROJ or OpenSSL, because the sandbox builds only for
    wasm32-unknown-unknown;
  • the file system and arbitrary network, since host.fetch reads one text document and files
    arrive only through file parameters;
  • state between calls, since every call gets a fresh instance;
  • heavy compute, since there is a fuel budget, 512 MB of memory, 128 MiB messages and a 2 minute
    limit on a command;
  • binary payloads, since the boundary is JSON text;
  • tools that need to read the map, since a tool makes no host calls.

A process plugin is an ordinary program and lifts all of that. The trade-off is already documented:
it is not sandboxed, and it does not run in the web app.

What it would be

A small Cargo project that already speaks the protocol, with a plugin.json for
"runtime": "process", a packaging script and a release workflow for the three desktop platforms.
The protocol itself could live in a crate beside the rustgis-plugin SDK, so it is written once
rather than in every plugin.

Scope

Medium: a new template repository and its release workflow, with no change to RustGIS itself.

Activity

  1. giswqs commented on Oct 25, 2026

    @giswqs
    Member

    I am implementing a separate Rust process-plugin template with a working command and tool, reusable JSON-line protocol handling, deterministic packaging, and Linux/Windows/universal-macOS release builds. This will use the existing process interface without adding an SDK crate or changing RustGIS runtime behavior. I will verify the packaged plugin in rustgis-cli and link the template from the plugin documentation.

  2. added a commit that references this issue on Oct 25, 2026
    624c5e7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions