#time #type #header #ffi-time

ffi_time

FFI assistant for Rust time types

4 releases

0.2.1 Feb 4, 2025
0.2.0 Jan 24, 2025
0.1.2 Jan 17, 2025
0.1.1 Jan 17, 2025

#259 in Date and time

Download history 190/week @ 2025-01-11 225/week @ 2025-01-18 64/week @ 2025-01-25 874/week @ 2025-02-01 1502/week @ 2025-02-08 938/week @ 2025-02-15 1548/week @ 2025-02-22 1928/week @ 2025-03-01 1620/week @ 2025-03-08 936/week @ 2025-03-15 1516/week @ 2025-03-22 723/week @ 2025-03-29

5,197 downloads per month

BSD-2-Clause

12KB
263 lines

Rust std::time::Instant in C++

include/rust_time.h contains rust::time::Instant, which is a port of Rust's std::time::Instant with memory-layout compatibility.

No guarantee

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.

See also

Dependencies

~84KB