What is listenfd and when to use it
masterlistenfd is a Rust crate designed to work with externally managed and passed file descriptors. This is useful for systems that support socket activation, allowing a supervisor process to open a socket and pass it to your application.
It currently supports:
- systemd (including
systemd-socket-activate) on Unix for production deployments. - systemfd on Unix and Windows, which is highly recommended for development workflows to prevent connection resets during hot-reloading.