Skip to content

Q: How to integrate a plugin system into a Rust program? #1

Description

@crlf0710

I know this is a huge question :) But i've seen this question asked again and again by people. Just leaving my own set of subquestions here to try to cover some important parts of it.

How to make a compiled plugin:

With Rust - WebAssembly approach

With Rust - cdylib approach

How to define true/pseudo ABI-stable APIs

How to dynamically discover and load such plugins.

How to make an interpreted plugin (JavaScript/Java/C# as an example):

How to make a binding that owns a weak reference to a value within the system. (The value will die when the script env still owns reference to it)

How to map scripting interfaces to Rust program in an ergonomic way.

How to implement testing for such plugin-systems

Activity

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