| Crates.io | externref-macro |
| lib.rs | externref-macro |
| version | 0.3.0-beta.1 |
| created_at | 2022-10-29 13:06:02.615601+00 |
| updated_at | 2024-09-29 16:32:34.519665+00 |
| description | Proc macro for `externref` |
| homepage | |
| repository | https://github.com/slowli/externref |
| max_upload_size | |
| id | 701010 |
| size | 48,768 |
externrefThis macro complements the externref library, wrapping imported or exported functions
with Resource args and/or return type. These wrappers are what makes it possible to patch
the generated WASM module with the externref processor, so that real externrefs are used in
argument / return type positions.
Add this to your Crate.toml:
[dependencies]
externref-macro = "0.3.0-beta.1"
Note that the externref crate re-exports the proc macro if the macro crate feature
is enabled (which it is by default). Thus, it is rarely necessary to use this crate
as a direct dependency.
See externref docs for more details and examples of usage.
Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in externref by you, as defined in the Apache-2.0 license,
shall be dual licensed as above, without any additional terms or conditions.