Registry / utility / ffi-opaque

ffi-opaque

JSON →
library2.0.1rscratesunverified

A simple macro to create correct opaque pointers for FFI safety.

# Cargo.toml [dependencies] ffi-opaque = "2.0.1"
INSTALL
IMPORT
SIG · FFI-OPAQUE
F
ffi-opaque
utilityrustv2.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

opaque
use ffi_opaque::opaque;

Creates an opaque pointer type for FFI.

use ffi_opaque::opaque; opaque!(MyOpaque); fn main() { let ptr = MyOpaque::new(); // ptr is an opaque pointer type }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.0.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
ffi-opaque — cargo add ffi-opaque · libregistry