1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//! C ABI bindings for eggfetch-core.
//!
//! This crate exposes eggfetch-core as a C-compatible library for consumption
//! by Node.js (N-API), Ruby (FFI), Zig, or any language that can call C ABI
//! functions. All operations are blocking — the internal tokio runtime handles
//! async I/O transparently.
//!
//! # Thread Safety
//!
//! - [`ClientHandle`] is `Send + Sync` and may be shared across threads.
//! - [`RequestHandle`], [`ResponseHandle`], and [`ErrorHandle`] are
//! single-thread, single-use. Create, use, and free them on one thread.
//! - [`StreamingResponseHandle`] holds thread-safe shared state
//! (`Arc<StreamState>`): `next` may block on one thread while another
//! thread cancels, but each stream is still single-use (consume or cancel,
//! then free).
//! - All callback functions must be `extern "C"`.
/// Run an exported FFI operation without allowing a Rust panic to unwind
/// across the C ABI. The operation's documented sentinel value is returned
/// when a panic is caught.
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;