Expand description
Reusable helpers and extension traits for core services.
The module groups compile-time assertions, closure-producing macros, and common utilities shared across workspace crates. Frequently used helpers are re-exported through a single import path.
Re-exports§
pub use self::arrayvec::ArrayVecExt;pub use self::bool::BoolExt;pub use self::bytes::increment;pub use self::bytes::u64_from_bytes;pub use self::bytes::u64_from_u8;pub use self::debug::slice_truncated as debug_slice_truncated;pub use self::future::BoolExt as FutureBoolExt;pub use self::future::OptionStream;pub use self::future::TryExtExt as TryFutureExtExt;pub use self::hash::sha256::delimited as calculate_hash;pub use self::json::deserialize_from_str;pub use self::json::serialized_len;pub use self::json::to_canonical_object;pub use self::mutex_map::Guard as MutexMapGuard;pub use self::mutex_map::MutexMap;pub use self::option::OptionExt;pub use self::rand::shuffle;pub use self::rand::string as random_string;pub use self::rand::string_from as random_string_from;pub use self::secret::Secret;pub use self::secret::is_set as is_secret_set;pub use self::secret::resolve as resolve_secret;pub use self::stream::IterStream;pub use self::stream::ReadyExt;pub use self::stream::Tools as StreamTools;pub use self::stream::TryReadyExt;pub use self::string::str_from_bytes;pub use self::string::string_from_bytes;pub use self::sys::compute::available_parallelism;pub use self::time::exponential_backoff::continue_exponential_backoff;pub use self::time::exponential_backoff::continue_exponential_backoff_secs;pub use self::time::exponential_backoff::exponential_backoff_streak_cap;pub use self::time::now_millis as millis_since_unix_epoch;pub use self::time::timepoint_ago;pub use self::time::timepoint_from_now;pub use self::time::timepoint_has_passed;
Modules§
- arrayvec
- Extensions for fixed-capacity
ArrayVecvalues. - bool
- Trait BoolExt
- bytes
- Byte-size parsing, display, and integer encoding helpers.
- content_
disposition - HTTP content-disposition selection and filename sanitization.
- debug
- Bounded and redacted debug-formatting utilities.
- defer
- Scope-exit guards for cleanup and temporary state changes.
- future
- Additional combinators for futures and optional futures.
- hash
- Password hashing and cryptographic digest utilities.
- html
- HTML text escaping utilities.
- json
- Serialization helpers for raw and canonical JSON values.
- math
- Arithmetic checking and numeric conversion helpers.
- mutex_
map - Per-key asynchronous mutual exclusion with automatic entry cleanup.
- option
- Asynchronous mapping adapters for optional values.
- rand
- Random value generation and randomized truncation helpers.
- result
- Result aliases and composable result extensions.
- secret
- Configuration-secret storage and resolution helpers.
- set
- Set operations on iterators and streams.
- stream
- Stream adapters for synchronous, concurrent, and fallible transformations.
- string
- String conversion, formatting, parsing, serialization, and slicing utilities.
- sys
- Operating-system resource and platform-integration utilities.
- time
- Wall-clock conversion, parsing, and duration-formatting utilities.
- two_
phase_ counter - Two-Phase Counter.
- unhandled
- Macros for branches expected never to execute.
- url
- Hostname and URL matching utilities.
Functions§
- assert_
dst - Accepts any type, including an unsized type, without performing work.
- assert_
ref_ unwind_ safe - Asserts at compile time that
TimplementsRefUnwindSafe. - assert_
send - Asserts at compile time that
TimplementsSend. - assert_
sized - Asserts at compile time that
TimplementsSized. - assert_
sync - Asserts at compile time that
TimplementsSync. - assert_
unpin - Asserts at compile time that
TimplementsUnpin. - assert_
unwind_ safe - Asserts at compile time that
TimplementsUnwindSafe.