3 releases (breaking)

0.3.0-beta.1 Sep 29, 2024
0.2.0 Jun 3, 2023
0.1.0 Oct 29, 2022

#220 in #wasm-module

Download history 25/week @ 2024-07-27 25/week @ 2024-08-03 50/week @ 2024-08-10 9/week @ 2024-08-17 3/week @ 2024-08-24 4/week @ 2024-08-31 25/week @ 2024-09-21 121/week @ 2024-09-28 14/week @ 2024-10-05 10/week @ 2024-10-12 5/week @ 2024-10-19 5/week @ 2024-10-26 26/week @ 2024-11-02 17/week @ 2024-11-09

53 downloads per month
Used in externref

MIT/Apache

31KB
646 lines

Proc Macro For externref

Build Status License: MIT OR Apache-2.0 rust 1.76+ required

Documentation: Docs.rs crate docs (main)

This 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.

Usage

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.

License

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.

Dependencies

~235–680KB
~16K SLoC