77 stable releases (27 major)

new 27.0.0 Nov 20, 2024
26.0.1 Nov 5, 2024
26.0.0 Oct 22, 2024
25.0.3 Nov 5, 2024
0.40.1 Aug 31, 2022

#16 in WebAssembly

Download history 81468/week @ 2024-07-31 94445/week @ 2024-08-07 92907/week @ 2024-08-14 85775/week @ 2024-08-21 95600/week @ 2024-08-28 99271/week @ 2024-09-04 94564/week @ 2024-09-11 97582/week @ 2024-09-18 97409/week @ 2024-09-25 99953/week @ 2024-10-02 98196/week @ 2024-10-09 104217/week @ 2024-10-16 108761/week @ 2024-10-23 106079/week @ 2024-10-30 106123/week @ 2024-11-06 94370/week @ 2024-11-13

435,634 downloads per month
Used in 546 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