| Crates.io | chaos-engine-contain |
| lib.rs | chaos-engine-contain |
| version | 0.1.1 |
| created_at | 2025-08-07 02:58:55.292971+00 |
| updated_at | 2025-08-07 03:04:19.192866+00 |
| description | A crate that helps with the development of chaos-engine projects. |
| homepage | |
| repository | https://github.com/recleun/chaos-engine-contain |
| max_upload_size | |
| id | 1784623 |
| size | 3,629 |
This crate simply makes the process of closing and opening programs being developed with the chaos-engine crate easier, by containing its process and automatically building and starting a new one if the process ends with code 1.
To use this crate, simply install it:
cargo install chaos-engine-contain
Then in your chaos-engine project directory:
chaos-contain
You have to make your program exit with code 1 if you want it to restart itself.