58 stable releases (20 major)

new 20.0.2 May 7, 2024
20.0.0 Apr 22, 2024
19.0.2 Apr 11, 2024
19.0.0 Mar 20, 2024
0.40.1 Aug 31, 2022

#55 in WebAssembly

Download history 73785/week @ 2024-01-23 73588/week @ 2024-01-30 80118/week @ 2024-02-06 76438/week @ 2024-02-13 84635/week @ 2024-02-20 88160/week @ 2024-02-27 80832/week @ 2024-03-05 88073/week @ 2024-03-12 93951/week @ 2024-03-19 74972/week @ 2024-03-26 108290/week @ 2024-04-02 97286/week @ 2024-04-09 90802/week @ 2024-04-16 94013/week @ 2024-04-23 80080/week @ 2024-04-30 67556/week @ 2024-05-07

350,555 downloads per month
Used in 490 crates (3 directly)

Apache-2.0 WITH LLVM-exception

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