76 stable releases (26 major)

new 26.0.1 Nov 5, 2024
25.0.3 Nov 5, 2024
24.0.2 Nov 5, 2024
23.0.3 Oct 9, 2024
0.40.1 Aug 31, 2022

#23 in WebAssembly

Download history 94227/week @ 2024-07-16 92064/week @ 2024-07-23 84206/week @ 2024-07-30 90718/week @ 2024-08-06 95647/week @ 2024-08-13 85060/week @ 2024-08-20 93990/week @ 2024-08-27 101823/week @ 2024-09-03 93940/week @ 2024-09-10 94270/week @ 2024-09-17 100940/week @ 2024-09-24 99894/week @ 2024-10-01 97084/week @ 2024-10-08 102229/week @ 2024-10-15 109539/week @ 2024-10-22 100372/week @ 2024-10-29

431,106 downloads per month
Used in 540 crates (5 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