geofmureithi / plugy Goto Github PK
View Code? Open in Web Editor NEWplugy empowers you to construct agnostic dynamic plugin systems using Rust and WebAssembly.
License: Other
plugy empowers you to construct agnostic dynamic plugin systems using Rust and WebAssembly.
License: Other
Currently we dont have any way of differentiating between plugins that are rightly done eg have all methods defined and a junk wasm file.
This causes a panic at calltime and rightly so.
Is there a way to add some signature or check to prevent loading a wasm file that doesn't conform.
Add optional wasi support.
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
Cargo.toml
crates/plugy-core/Cargo.toml
serde 1
bincode 1.3.3
anyhow 1
crates/plugy-macros/Cargo.toml
quote 1.0
syn 2.0
proc-macro2 1
darling 0.20.8
convert_case 0.6.0
crates/plugy-runtime/Cargo.toml
anyhow 1
bincode 1.3.3
dashmap 5.5.3
serde 1
wasmtime 18.0.2
async-lock 3.3.0
.github/workflows/build.yml
actions/checkout v4
actions/checkout v4
Currently this works:
#[plugy::plugin]
trait Greeter {
fn greet(&self) -> String;
}
This may not:
#[plugy::plugin]
trait Greeter {
fn greet(&self, name:String) -> String;
}
plugy/crates/plugy-macros/src/lib.rs
Line 330 in 0e106ad
Is generics a worthy cause?
Currently they can work on guest but the warpper code generated doesn't
there are dog.wasm
, cat.wasm
and much more plugins, these are provided by community, and keep growing. the host app is fixed, so it's impossible to define struct for each plugin in host app code, like current example
in repo.
the host app needs to use plugin based on user input. i tried a bit but fail.
Imagine doing this:
let context = Context::new(); // Context shared by plugins
let runtime = Runtime::new(context);
Then on guest:
#[plugy::plugin]
trait Greeter {
fn greet(&self, ctx:Context) -> String;
}
Context can expose methods like fetch etc which would have external access for guests.
plugy/crates/plugy-macros/src/lib.rs
Line 345 in d5fac7a
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.