fn_abi

Crates.iofn_abi
lib.rsfn_abi
version3.0.0
sourcesrc
created_at2021-09-23 23:19:20.855572
updated_at2022-03-07 11:44:14.560191
descriptionA proc attribute macro that sets the ABI/calling convention for the attributed function
homepage
repositoryhttps://github.com/WilliamVenner/fn_abi
max_upload_size
id455654
size7,635
William (WilliamVenner)

documentation

README

crates.io

fn_abi

A proc attribute macro that sets the ABI/calling convention for the attributed function.

Example

#[macro_use] extern crate fn_abi;

#[abi("fastcall")]
extern fn hello_world_fastcall() {
    println!("hello world!");
}

#[cfg_attr(all(target_os = "windows", target_pointer_width = "32"), abi("thiscall"))]
#[cfg_attr(all(target_os = "windows", target_pointer_width = "64"), abi("fastcall"))]
extern fn hello_world_windows() {
    println!("hello world!");
}
Commit count: 9

cargo fmt