Expand description
§Kaspa Utilities
General purpose utilities and various type extensions used across the Rusty Kaspa codebase.
Modules§
- any
- arc
- as_
slice - binary_
heap - channel
- expiring_
cache - fd_
budget - git
- hashmap
- hex
- iter
- mem_
size - 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. - networking
- option
- refs
- serde_
bytes - Examples
- serde_
bytes_ fixed - Examples
- serde_
bytes_ fixed_ ref - Examples
- serde_
bytes_ optional - sim
- Module with structs for supporting discrete event simulation in virtual time. Inspired by python’s simpy library.
- sync
- sysinfo
- triggers
- vec
Macros§
- serde_
impl_ deser_ fixed_ bytes_ ref - 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. - serde_
impl_ ser_ fixed_ bytes_ ref - 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.