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
68
69
70
71
72
73
//! Zero-config primitives that replace a dozen crates.
//!
//! Every module is a single-import, single-call primitive — hex, base64,
//! timestamps, UUIDs, hashing, glob matching, regex, JSON, async — backed by
//! a vetted dependency stack that bottoms out at zero external deps.
//!
//! The default `core` feature compiles with **zero external dependencies**.
//! Each optional feature unlocks one capability with one audited stack.
//!
//! ## Feature map
//!
//! - `core` (default) — encoding, fs, glob, hex, leb128, retry, task, time. Zero deps.
//! - `random` — random, id. Adds `getrandom`.
//! - `hash` — hash. Adds `blake3`.
//! - `pattern` — pattern. Adds `regex`.
//! - `json` — json. Adds `serde`, `serde_json`.
//! - `ron` — ron. Adds `serde`, `ron`.
//! - `wire` — wire. Adds `rkyv`.
//! - `http` — http. Adds `ureq` (rustls-only TLS), `iri-string`.
//! - `online` — online. Zero deps.
//! - `fs-raw` — fs::available_space. Adds `rustix` (Unix-only).
//! - `process` — process::kill_process_group. Adds `rustix/process` (Unix-only).
//! - `full` — all of the above.
//!
//! Lint contract: workspace `missing_docs` deny, `unsafe_code` forbid,
//! `broken_intra_doc_links` deny — see the workspace root `Cargo.toml`.
///
/// Single-import encoding primitives: base64 and percent-encoding.
/// Filesystem traversal with sandbox enforcement.
/// Shell-style glob matching.
/// BLAKE3 content-addressable hashing (feature `hash`).
/// Hex encode and decode.
/// Blocking HTTP exchange with strict URL validation (feature `http`).
/// UUID generation and parsing (feature `random`).
/// JSON encoding and decoding via serde (feature `json`).
/// LEB128 variable-length integer encoding.
/// TCP reachability probing, zero-dep (feature `online`).
/// Compiled regex matching with a linear-time guarantee (feature `pattern`).
/// Supervised subprocess termination (feature `process`, Unix-only).
/// OS entropy (feature `random`).
/// Retry budgets: attempts, backoff, deadlines. Zero-dep policy values.
/// RON encoding and decoding via serde (feature `ron`).
/// Single-threaded executor: `block_on`, `join_all`, `spawn_blocking`.
/// RFC 3339 timestamps and calendar math.
/// Zero-copy binary wire serialization via rkyv (feature `wire`).