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
58
59
60
61
62
63
64
65
66
67
//! # paginate-core
//!
//! Pure, language-agnostic engine behind the [`pypaginate`] (Python) and
//! [`@cyblow/paginate`] (TypeScript) packages. 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) and Node/TypeScript
//! (via napi-rs), and compiles unchanged to WebAssembly for an optional
//! browser/edge target.
//!
//! ## 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 shared property-based invariants double as every binding's
//! conformance suite.
//! * **Behaviour parity.** Each binding wraps this one engine, so results match
//! across languages (e.g. the cursor wire format is byte-identical, so cursors
//! minted by any implementation decode in the others).
//!
//! [`pypaginate`]: https://github.com/CybLow/paginate
//! [`@cyblow/paginate`]: https://www.npmjs.com/package/@cyblow/paginate
// Internal-only modules: shared helpers and the error type. `CoreError`/`Result`
// reach the public API through the flat re-exports below, never `core::error::`.
// Wire-form DTOs + JSON Schema export — the cross-language type contract. Behind
// the `schema` feature so the default build carries no schemars dependency.
// Flat re-export of the public surface: callers (and the PyO3 / napi bindings)
// write `paginate_core::FilterSpec`, never `paginate_core::filter::types::...`,
// so the module layout can change without breaking them. This is the single,
// canonical home of the domain contract the language bindings wrap.
pub use Columns;
pub use ;
pub use ;
pub use ;
pub use normalize_text;
pub use Limit;
pub use ;
pub use ;
pub use ;
pub use MAX_LIMIT;
pub use Value;