Crate dynpatch_interface

Crate dynpatch_interface 

Source
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§

PatchMetadata
Metadata about a patch
TypeLayout
Information about type layout for ABI validation
Version
Version information for patches

Enums§

PatchError
Errors that can occur during patch operations

Traits§

PatchEntry
Optional entry point for patches with initialization/teardown
PatchInterface
Trait for patchable interfaces
StateMigration
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