| Crates.io | lnmp-sanitize |
| lib.rs | lnmp-sanitize |
| version | 0.5.16 |
| created_at | 2025-11-19 11:12:19.526291+00 |
| updated_at | 2025-12-19 10:02:36.679042+00 |
| description | Lenient sanitizer and normalizer for LNMP text inputs |
| homepage | |
| repository | https://github.com/lnmplang/lnmp-protocol |
| max_upload_size | |
| id | 1939909 |
| size | 43,977 |
FID Registry: See
registry/fids.yamlfor official Field IDs.
Lenient sanitizer for LNMP text inputs. This crate performs lightweight whitespace cleanup, escape repair, and basic normalization so that downstream strict parsers can accept slightly malformed inputs from LLMs or user-written payloads.
The API is intentionally streaming-friendly and returns a Cow<'a, str> to avoid
unnecessary allocations when the input already matches the expected format.