Subsecond enables hot-patching of Rust applications by detouring function calls through a runtime-managed jump table, allowing code updates without restarting.
It uses an external tool and the ThinLink linker wrapper to compile only changed code and generate jump tables, speeding up development builds.
Developers wrap code in subsecond::call macros and use the Dioxus CLI (dx serve --hotpatch) to automatically load and apply patches.
Subsecond avoids unsafe memory modifications by applying patches via function pointers and emits safe panics when calls become stale.
Current limitations include only patching the main crate, limited workspace support, restrictions on globals/statics/thread-locals, no struct layout hot-reloading, and unversioned pointers.
Supports major platforms (Android, iOS, Linux, macOS, Windows, WebAssembly) and integrates with Dioxus Devtools; licensed under MIT.
Get notified when new stories are published for "General AI News"