Skip to content

Add support for native shared libraries as plugins#349

Merged
caelunshun merged 4 commits intomainfrom
native-plugins
Feb 27, 2021
Merged

Add support for native shared libraries as plugins#349
caelunshun merged 4 commits intomainfrom
native-plugins

Conversation

@caelunshun
Copy link
Member

Connections: feather-rs/quill#1

This refactors the plugin host to support two backends: WebAssembly plugins through wasmer and native shared libraries through libloading.

The PluginContext struct abstracts over both types of plugins so that host call implementations only have to be implemented once. The maintenance cost of having two backends should therefore be small.

The main downside of this feature is more unsafe code.

@caelunshun caelunshun merged commit 4c34e17 into main Feb 27, 2021
@caelunshun caelunshun deleted the native-plugins branch February 27, 2021 20:33
This was referenced Mar 3, 2021
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

Successfully merging this pull request may close these issues.

1 participant