Commit Graph

11 Commits

Author SHA1 Message Date
Jackson Coxson
602e1ba855 Replace off_t with Windows-allowed value in AFC FFI 2026-01-05 07:23:55 -07:00
Jackson Coxson
ae39fcb7df Add afc2 abstractions (#55) 2026-01-05 07:08:40 -07:00
Jackson Coxson
13be1ae377 Add read_entire to FFI
a
2026-01-05 06:56:11 -07:00
Jackson Coxson
166c497878 Implement seek and tell for AFC (#42) 2026-01-03 16:37:55 -07:00
Jackson Coxson
e31f39eac0 Clean Rust 1.90 clippy warnings 2025-11-10 13:32:49 -07:00
Abdullah Al-Banna
b26dd17b13 impl tokio's AsyncRead/Write/Seek for AFC FileDescriptor (#33)
* AsyncWrite/Read/Seek

* clean up

* use only one field to store the future

This struct should not be shared across threads because simultaneous
operations
like reading, writing, or seeking could lead to data races or
inconsistent state, because the cursor moves.

Only one operation will ever run at a time, which allows us to safely
store
different types of pending operations (read, write, or seek) in the same
field.

* consume self without mut when closing

* clippy

* Add inner_file safety tests

* more tests

---------

Co-authored-by: Jackson Coxson <jkcoxson@gmail.com>
2025-10-28 07:57:35 -06:00
Jackson Coxson
7da735f141 Rewrite async runtime handling and port to tracing 2025-10-23 12:29:59 -06:00
Jackson Coxson
a297eed156 Replace log crate with tracing 2025-10-23 09:49:38 -06:00
Jackson Coxson
35ba07889b Update FFI to use error struct for message 2025-06-02 19:42:19 -06:00
Jackson Coxson
fa88c2c87d Refactor FFI bindings 2025-05-26 12:52:23 -06:00
Jackson Coxson
32b175028f afc bindings 2025-04-08 17:29:58 -06:00