78 stable releases (28 major)

new 28.0.0 Dec 20, 2024
27.0.0 Nov 20, 2024
26.0.1 Nov 5, 2024
25.0.3 Nov 5, 2024
0.40.1 Aug 31, 2022

#16 in WebAssembly

Download history 99739/week @ 2024-09-05 95482/week @ 2024-09-12 98159/week @ 2024-09-19 96549/week @ 2024-09-26 101776/week @ 2024-10-03 99180/week @ 2024-10-10 104353/week @ 2024-10-17 107395/week @ 2024-10-24 108220/week @ 2024-10-31 101535/week @ 2024-11-07 97417/week @ 2024-11-14 101923/week @ 2024-11-21 102909/week @ 2024-11-28 106086/week @ 2024-12-05 100168/week @ 2024-12-12 73290/week @ 2024-12-19

400,835 downloads per month
Used in 555 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