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
53
54
55
56
57
//! Rift core engine — CLI-free imposter lifecycle, matching, behaviors, scripting and
//! flow-state. Usable in-process without the admin HTTP server or the `clap` CLI (issue #203);
//! the `rift-http-proxy` server and the `rift-ffi` C-ABI are thin consumers.
/// Whether the quamina-backed body-field candidate dimension is compiled into this build.
///
/// Reported at startup by the server binary so a benchmark — or an operator — can read the answer
/// off the artefact instead of inferring it from build flags, the same way `Global allocator:`
/// (#717) and `Runtime topology:` (RFC-712) already are. It is deliberately defined *here*, in the
/// crate whose `#[cfg]` gates the dimension, rather than in a consumer: issue #777 shipped this
/// dimension enabled in `rift-mock-core` and compiled out of both the binary and the C-ABI,
/// because each consumer takes this crate with `default-features = false` and nothing forwarded
/// the feature. A marker sourced from a consumer would have reported that consumer's own opinion;
/// this one reports what actually got compiled.
pub const QUAMINA_BODY_FIELD_DIMENSION: bool = cfg!;
// ===== Core Mountebank-compatible modules =====
/// The imposter grammar as a JSON Schema (issue #1342).
// ===== Rift Extensions (features beyond Mountebank) =====
// Re-export extension modules at top level for backward compatibility
pub use flow_state;
pub use stub_analysis;
pub use template;
// The TCP-fault carrier seam: an in-process embedder receives the carrier response the serve loop
// would have replaced with a socket abort, and names these as `rift_mock_core::tcp_fault_carrier`
// (issue #965), the same way it names `FastMap` below. `FaultCell`/`FaultIo`/`InjectedFault`/
// `is_injected_fault` let a listener other than the serve loop apply that abort itself (#1234);
// `LingerOnClose`/`arm_linger_if_requested` let it close a refused connection cleanly (#1460).
pub use ;
// Shared utilities
// Embedded-Rust consumers name the aliases as `rift_mock_core::FastMap` (issue #704).
pub use ;
// Backends (pub for integration tests)
// Scripting validation/execution (pub so the admin server can validate stubs)