Expand description
§Kaspa Utilities
General purpose utilities and various type extensions used across the Rusty Kaspa codebase.
Modules§
- Defines a
MemSizeEstimator
trait and a companyingMemMode
which are used to estimate sizes of run-time objects in memory, including deep heap allocations. See struct-level docs for more details. - Examples
- Examples
- Examples
- Module with structs for supporting discrete event simulation in virtual time. Inspired by python’s simpy library.
Macros§
- Macro to provide serde::Deserialize implementations for types
$t
which can be constructed from byte arrays of fixed size. The resulting structure will support deserialization from human-readable formats using hex::FromHex, as well as binary formats. - Macro to generate serde::Serialize implementation for types
$t
that can be referenced as a byte array of fixed size, The resulting structure will support serialization into human-readable formats using hex encoding, as well as binary formats.