82 stable releases (30 major)

new 30.0.0 Feb 20, 2025
29.0.1 Jan 21, 2025
28.0.1 Jan 14, 2025
28.0.0 Dec 20, 2024
0.40.1 Aug 31, 2022

#17 in WebAssembly

Download history 106079/week @ 2024-10-30 106123/week @ 2024-11-06 95089/week @ 2024-11-13 102948/week @ 2024-11-20 101443/week @ 2024-11-27 107083/week @ 2024-12-04 97784/week @ 2024-12-11 91390/week @ 2024-12-18 35959/week @ 2024-12-25 69656/week @ 2025-01-01 102649/week @ 2025-01-08 105939/week @ 2025-01-15 105821/week @ 2025-01-22 103258/week @ 2025-01-29 130914/week @ 2025-02-05 95154/week @ 2025-02-12

452,326 downloads per month
Used in 573 crates (6 directly)

Apache-2.0 WITH LLVM-exception

5KB
70 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