#structures

macro nstdapi

A helper crate for nstd providing manipulation of an item’s ABI attributes

3 unstable releases

0.2.0 Jul 14, 2023
0.1.1 Mar 18, 2023
0.1.0 Feb 3, 2023

#331 in #structures


Used in nstd-sys

MIT license

7KB
92 lines

nstdapi

A helper crate for nstd providing manipulation of an item.

Features

capi

  • Mark function definitions as #[no_mangle].
  • Set function ABIs to extern "C".
  • Mark static item definitions as #[no_mangle].
  • Set static item declaration ABIs to extern "C".
  • Mark structures, enumerations, and unions as #[repr(C)].
  • Implicitly enables capi.
  • Turn function definitions into function declarations.
  • Turn static item definitions into static item declarations.

lib.rs:

A helper crate for nstd providing manipulation of an item.

Dependencies

~175KB