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
//! # paginate-core
//!
//! Pure, language-agnostic engine behind [`pypaginate`]. It owns the
//! computational heart of the library — cursor encoding, offset math, text
//! normalization, filtering, sorting and search — with **zero binding
//! dependencies** so the exact same crate links natively into Python (via
//! PyO3) today and compiles unchanged to WebAssembly / N-API for the planned
//! JS/TS port.
//!
//! ## Design rules
//!
//! * **Plain data only.** Everything crosses the boundary as [`value::Value`],
//! a small JSON-like enum. No host objects, no framework types.
//! * **Deterministic & side-effect free.** Same input, same output — which is
//! what lets the Python property-based invariants double as the port's
//! conformance suite.
//! * **Behaviour parity.** Each module mirrors the semantics of its Python
//! counterpart (e.g. the cursor wire format is byte-identical, so cursors
//! minted by either implementation decode in the other).
//!
//! [`pypaginate`]: https://github.com/CybLow/paginate
pub use ;
pub use normalize_text;
pub use Value;