Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
crlf0710 opened this issue Mar 31, 2024 · 0 comments
Open

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

crlf0710 opened this issue Mar 31, 2024 · 0 comments

Comments

@crlf0710
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant