| Crates.io | ffi-string |
| lib.rs | ffi-string |
| version | 1.0.4 |
| created_at | 2024-12-20 19:42:59.760664+00 |
| updated_at | 2024-12-28 23:02:49.524616+00 |
| description | A small crate for moving strings across `extern "C"` |
| homepage | |
| repository | https://github.com/What42Pizza/ffi-string |
| max_upload_size | |
| id | 1490466 |
| size | 8,773 |
This is a small crate for moving strings across extern "C", giving FFI-safe version of String and &str
FFIString and FFIStrThese work just like String and &'a str, but with #[repr(C)]
I'm trying to make a game engine that loads game code at runtime, and I want both sides to be written in Rust. Without extern "C", both sides would need to be compiled with the exact same version of rustc, so I need an FFI-safe way to pass around String and &str
If you have any ideas on how this can be improved, please submit an issue on the repository