#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

#353 in #structures

Download history 12/week @ 2024-07-24 4/week @ 2024-07-31 5/week @ 2024-09-18 6/week @ 2024-09-25

108 downloads per month
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

~170KB