Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rksm/rust-hot-reload
hot-reload template for Rust
https://github.com/rksm/rust-hot-reload
cargo-generate hot-reload rust
Last synced: 3 months ago
JSON representation
hot-reload template for Rust
- Host: GitHub
- URL: https://github.com/rksm/rust-hot-reload
- Owner: rksm
- License: mit
- Created: 2022-07-30T01:55:55.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-09-02T21:36:24.000Z (over 2 years ago)
- Last Synced: 2024-05-02T06:04:03.649Z (8 months ago)
- Topics: cargo-generate, hot-reload, rust
- Language: Rust
- Homepage:
- Size: 11.7 KB
- Stars: 18
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
_This is a template for [cargo-generate](https://cargo-generate.github.io/cargo-generate/)._
_Use with `cargo generate rksm/rust-hot-reload`._# {{project-name}}
A workflow for quick feedback while writing Rust! See https://github.com/rksm/hot-lib-reloader-rs and https://robert.kra.hn/posts/hot-reloading-rust/ for more info.
## Usage
### Hot reload for development
For development use two terminals to run the binary and (re-)build the lib:
```shell
$ cargo watch -i lib -x 'run --features reload'
$ cargo watch -w lib -x 'build -p lib'
```With [cargo runcc](https://crates.io/crates/runcc) you just need to run `cargo runcc -c runcc.yml`.
### Statically build or run for release
```shell
cargo build --release
cargo run --release
```