trillium-rs / trillium

Trillium is a composable toolkit for building internet applications with async rust

Home Page:https://trillium.rs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

feature for all runtime adapters: add the ability to provide a pre-bound TcpListener instead of host+port

jbr opened this issue · comments

I'd like this as well, so that I can bind to a privileged port and then drop privileges.

This is released as Config::with_prebound_server as patch releases for all three runtimes (trillium-tokio-v0.3.2, trillium-async-std-v0.3.1, and trillium-smol-v0.3.1). Example usage for tokio is at tokio/examples/tokio_binding.rs and usage is identical for the other two runtimes.

@jbr That's incredible, thank you!