Crate wasmtime_internal_asm_macros

Crate wasmtime_internal_asm_macros 

Source
Expand description

This crate defines a macro named asm_func! which is suitable for generating a single global_asm!-defined function.

This macro takes care of platform-specific directives to get the symbol attributes correct (e.g. ELF symbols get a size and are flagged as a function) and additionally handles visibility across platforms. All symbols should be visible to Rust but not visible externally outside of a *.so.

⚠️ Warning ⚠️: this crate is an internal-only crate for the Wasmtime project and is not intended for general use. APIs are not strictly reviewed for safety and usage outside of Wasmtime may have bugs. If you’re interested in using this feel free to file an issue on the Wasmtime repository to start a discussion about doing so, but otherwise be aware that your usage of this crate is not supported.

Macros§

asm_func
elf_func_type_header