socket_addr_macros-1.0.0 has been yanked.
The Rust Standard Library documentation suggests that, for an argument of type
ToSocketAddrs
you should directly pass a string literal, which is parsed at runtime and
thus potentially causing a panic. To solve this, socket_addr!
and socket_addr_dyn!
macros
do the parsing at compile-time and when the address is invalid, cause a compile error.