#lib #dylib #compile #hotload #crates

hotlib

A library for watching, dynamically compiling, and hot-loading Rust libraries

1 unstable release

0.1.0 Jul 15, 2021

#33 in #dylib

MIT/Apache

19KB
373 lines

For watching and loading a Rust library in Rust.

You are likely looking for the watch function docs.


hotlib Actions Status Crates.io Crates.io docs.rs

A library for watching, dynamically compiling, and hot-loading Rust libraries.

Try running:

cargo run --example demo

And while the demo is running, try editing the test_crate/src/lib.rs file. Each time you write your changes to disk, the demo should automatically detect the change, return the package, build the package and then load the corresponding dynamic library.

Dependencies

~3–10MB
~105K SLoC