extern_attrib

Crates.ioextern_attrib
lib.rsextern_attrib
version0.2.0
created_at2017-05-20 20:17:11.849315+00
updated_at2017-05-21 11:00:30.64425+00
descriptionRust automatic ABI attribute macro: #[extern_auto]
homepage
repositoryhttps://github.com/anderejd/extern_attrib
max_upload_size
id15399
size6,063
(anderejd)

documentation

README

extern_attrib

Rust automatic ABI attribute macro: #[extern_auto]

The purpose of this library is to replace or insert the ABI name at compile time for functions. This is useful for hiding the calling convention for FFI callbacks while avoiding code duplication.

  • Requires nightly rust, depends on #[proc_macro_attribute].
  • Currenly only handles target_os = "windows" / "macos" / "linux".
  • See the tests/tests.rs for a usage example.
  • Pull Requests Welcome!
Commit count: 0

cargo fmt