81 stable releases (29 major)

29.0.1 Jan 21, 2025
28.0.1 Jan 14, 2025
28.0.0 Dec 20, 2024
27.0.0 Nov 20, 2024
0.40.1 Aug 31, 2022

#17 in WebAssembly

Download history 109539/week @ 2024-10-22 101075/week @ 2024-10-29 110797/week @ 2024-11-05 94403/week @ 2024-11-12 103455/week @ 2024-11-19 100728/week @ 2024-11-26 106870/week @ 2024-12-03 102836/week @ 2024-12-10 101448/week @ 2024-12-17 36206/week @ 2024-12-24 56448/week @ 2024-12-31 99745/week @ 2025-01-07 109809/week @ 2025-01-14 103687/week @ 2025-01-21 104148/week @ 2025-01-28 106895/week @ 2025-02-04

443,902 downloads per month
Used in 572 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