Registry / utility / foreign-types

foreign-types

JSON →
library0.5.0rscratesunverified

A framework for Rust wrappers over C APIs, providing traits and macros for safe FFI.

# Cargo.toml [dependencies] foreign-types = "0.5.0"
INSTALL
IMPORT
SIG · FOREIGN-TYPES
F
foreign-types
utilityrustv0.5.0
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.

ForeignType
use foreign_types::ForeignType;

Demonstrate the ForeignType trait.

use foreign_types::ForeignType; // Example usage requires a C library; this is a placeholder. fn main() { println!("Foreign types framework ready"); }
Debug
Known issues
gotchaRequires careful handling of lifetimes and ownership to avoid memory unsafety.
fix
Ensure proper use of `ForeignTypeRef` and `ForeignType` traits; test with Miri.
affects: >=0.5.0
Upgrade
Version history
0.5.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
foreign-types — cargo add foreign-types · libregistry