Expand description
§dynpatch-interface
Shared interface types and traits for the dynpatch hot-patching system. This crate must be used by both the host binary and patch dynamic libraries to ensure type and ABI consistency.
§Core Concepts
- PatchMetadata: Version and compatibility information
- PatchInterface: Base trait for all patchable interfaces
- PatchEntry: Optional initialization/teardown hooks
- TypeHash: Deterministic type layout hashing
Structs§
- Patch
Metadata - Metadata about a patch
- Type
Layout - Information about type layout for ABI validation
- Version
- Version information for patches
Enums§
- Patch
Error - Errors that can occur during patch operations
Traits§
- Patch
Entry - Optional entry point for patches with initialization/teardown
- Patch
Interface - Trait for patchable interfaces
- State
Migration - State migration trait for carrying state across patch versions
Functions§
- compute_
type_ hash - Compute a deterministic hash of a type’s name for compatibility checking