63 stable releases (23 major)

new 23.0.1 Jul 22, 2024
22.0.0 Jun 20, 2024
21.0.1 May 22, 2024
20.0.2 May 7, 2024
0.40.1 Aug 31, 2022

#17 in WebAssembly

Download history 103053/week @ 2024-04-04 93226/week @ 2024-04-11 94083/week @ 2024-04-18 86739/week @ 2024-04-25 82690/week @ 2024-05-02 87387/week @ 2024-05-09 82287/week @ 2024-05-16 91807/week @ 2024-05-23 88969/week @ 2024-05-30 74035/week @ 2024-06-06 83122/week @ 2024-06-13 84719/week @ 2024-06-20 80866/week @ 2024-06-27 75375/week @ 2024-07-04 91104/week @ 2024-07-11 77636/week @ 2024-07-18

341,182 downloads per month
Used in 504 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