Crate dynpatch_core

Crate dynpatch_core 

Source
Expand description

§dynpatch-core

Runtime engine for safe live code reloading in Rust.

This crate provides the core functionality for loading, validating, and activating patches at runtime, with strong safety guarantees and transactional semantics.

Re-exports§

pub use error::Error;
pub use error::Result;
pub use loader::PatchLoader;
pub use loader::Library;
pub use registry::PatchRegistry;
pub use registry::PatchInfo;
pub use registry::PatchRecord;
pub use validator::Validator;
pub use validator::ValidationConfig;

Modules§

error
Error types for dynpatch-core
loader
Dynamic library loading and symbol resolution
metrics
Metrics and observability for patch operations
registry
Patch registry and lifecycle management
validator
ABI and type compatibility validation

Structs§

RuntimeBuilder
Builder for configuring the dynpatch runtime

Functions§

active_patch_info
Get information about the currently active patch
history
Get the history of all loaded patches
init
Initialize the dynpatch runtime with default settings
reload
Reload a patch from the specified path
rollback
Rollback to the previous patch