axum-bootstrap 0.1.21

a way to bootstrap a web server with axum, including TLS, logging, monitoring, and more.
Documentation
1
2
3
4
5
6
7
pub struct SocketAddrFormat<'a>(pub &'a std::net::SocketAddr);

impl std::fmt::Display for SocketAddrFormat<'_> {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        write!(f, "{} {}", self.0.ip().to_canonical(), self.0.port())
    }
}