79 stable releases (28 major)

new 28.0.1 Jan 14, 2025
28.0.0 Dec 20, 2024
27.0.0 Nov 20, 2024
26.0.1 Nov 5, 2024
0.40.1 Aug 31, 2022

#16 in WebAssembly

Download history 94583/week @ 2024-09-27 103792/week @ 2024-10-04 98953/week @ 2024-10-11 106727/week @ 2024-10-18 103215/week @ 2024-10-25 111056/week @ 2024-11-01 98507/week @ 2024-11-08 100809/week @ 2024-11-15 98086/week @ 2024-11-22 105097/week @ 2024-11-29 105965/week @ 2024-12-06 97466/week @ 2024-12-13 63311/week @ 2024-12-20 42373/week @ 2024-12-27 89325/week @ 2025-01-03 90030/week @ 2025-01-10

300,194 downloads per month
Used in 566 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