15 stable releases (7 major)

new 7.0.0 Mar 20, 2023
6.0.1 Mar 8, 2023
6.0.0 Feb 20, 2023
5.0.1 Mar 8, 2023
0.40.1 Aug 31, 2022

#325 in WebAssembly

Download history 24375/week @ 2022-11-29 22687/week @ 2022-12-06 25206/week @ 2022-12-13 20140/week @ 2022-12-20 12541/week @ 2022-12-27 22240/week @ 2023-01-03 28228/week @ 2023-01-10 31741/week @ 2023-01-17 31096/week @ 2023-01-24 29965/week @ 2023-01-31 30183/week @ 2023-02-07 30444/week @ 2023-02-14 36290/week @ 2023-02-21 38168/week @ 2023-02-28 40068/week @ 2023-03-07 32255/week @ 2023-03-14

152,331 downloads per month
Used in 270 crates (2 directly)

Apache-2.0 WITH LLVM-exception

4KB
69 lines

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.

Dependencies

~4KB