Make a Rust project: cargo init foo
Install PM2:
npm init
npm install pm2
Create a script entry in your package.json to launch pm2:
{
"scripts": {
"start": "cargo run",
"up": "pm2 start target/debug/<your-app> --watch",
"down": "pm2 stop 0 --watch && pm2 delete 0"
}
}