Expand description
Minimal domain-free utility crate for the rskit ecosystem.
Provides fundamental helper modules for string casing, safe truncation, collection transformation, safe environment variable parsing, duration/byte size parsing, and stateless mathematical exponential backoff.
§Modules
backoff: State-free mathematical backoff calculations with jitter.bytes: Formatting and parsing human-readable data sizes.collections: Vector grouping, chunking, indexing, and partition helpers.env: Safe environment variable parsing with defaults.glob: Shell-style*/?matching over single string segments.hash: Content/interop hashing — BLAKE3 and SHA-256.secret: Prevent accidental credential leaks in logs/debug outputs.sensitive: Matching helpers for names that commonly carry secrets.strings: Casing, safe truncation, unique-shorthand resolution, and “did you mean?” suggestions.template: Lightweight template engine ({name}interpolation).time: Duration parsing, UTC date/time conversion, RFC 3339 helpers, and timing wrappers.
Re-exports§
pub use secret::SecretString;pub use sensitive::SecretKeyMatcher;pub use template::Placeholder;pub use template::Template;pub use template::TemplatePart;
Modules§
- backoff
- Stateless mathematical backoff calculations.
- bytes
- Formatting and parsing human-readable data sizes.
- collections
- Low-level collection transformation utilities.
- env
- Safe environment variable parsing with defaults.
- glob
- Shell-style glob matching for single string segments.
- hash
- Content and interop hashing helpers.
- secret
- Secret string type that masks its value in display, debug, and serialization.
- sensitive
- Matching helpers for names that commonly carry secret values.
- strings
- String helpers: case conversion, UTF-8-safe truncation, unique-shorthand resolution, and “did you mean?” suggestions.
- template
- Lightweight template engine featuring brace-delimited placeholders.
- time
- Time, duration, and UTC date/time helpers.