Skip to content

Commit 2275c79

Browse files
committed
Allow plugins to fetch and query resources #73
1 parent 369c3a9 commit 2275c79

File tree

10 files changed

+618
-50
lines changed

10 files changed

+618
-50
lines changed

Cargo.lock

Lines changed: 61 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

atomic-plugin/CONTRIBUTING.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Contributing to Atomic Plugin
2+
3+
When updating the bindings, keep the following in mind:
4+
There is a weird issue where the bindings do not work when using the standard `wit_bidgen::generate!` macro.
5+
To get the right bindings change bindings.rs to the following:
6+
7+
```rust
8+
wit_bindgen::generate!({
9+
path: "wit/class-extender.wit",
10+
world: "class-extender",
11+
pub_export_macro: true,
12+
});
13+
```
14+
15+
Then run `cargo component check` on the atomic-plugin crate, for some reason this expands the macro in a way that it actually works.
16+
The only thing left is to mark the following macro as exported:
17+
18+
```rust
19+
#[doc(hidden)]
20+
#[macro_export] // <-- add this line
21+
macro_rules! __export_world_class_extender_cabi {
22+
```

0 commit comments

Comments
 (0)