Skip to main content

Crate ezffi_macros

Crate ezffi_macros 

Source
Expand description

Proc-macros backing the ezffi crate. Most users should depend on ezffi directly and use export, not this crate

Macros§

export_extern_type
Registers an external type (one defined outside the current crate, e.g. std::string::String or Vec<T>) as opaque-pointer-exported. Used internally by ezffi’s std prelude; downstream users cannot use it unless they define the same traits this macro expands to
wrap_methods
Wraps a list of methods on an externally-defined type with C-FFI shims. Used by ezffi to expose Rust std struct methods to C.

Attribute Macros§

export
Expose the annotated item through the FFI layer.