| Crates.io | ffi_time |
| lib.rs | ffi_time |
| version | 0.2.1 |
| created_at | 2025-01-17 12:13:35.654189+00 |
| updated_at | 2025-02-04 11:25:59.830482+00 |
| description | FFI assistant for Rust time types |
| homepage | |
| repository | https://github.com/youknowone/rust-time-c |
| max_upload_size | |
| id | 1520551 |
| size | 38,757 |
include/rust_time.h contains rust::time::Instant, which is a port of Rust's std::time::Instant with memory-layout compatibility.
No guarantee for compatibility.
Since std::time::Instant and std::time::Duration is not #[repr(C)], use it on your own risk. Data without #[repr(C)] is unbelievably fragile on FFI boundary.