comparison Cargo.toml @ 4:66c0e10c89fc

Support resolving hostnames Until now the crate supported only IP addresses and systemd sockets. This was troublesome because it prevented the popular `localhost:1234` format. This commit changes the behavior so that if parsing of `std::net::SocketAddr` fails it attempts to parse it as `hostname:port`. `bind_*()` methods were also modified to be async because of this.
author Martin Habovstiak <martin.habovstiak@gmail.com>
date Fri, 27 Nov 2020 15:05:19 +0100
parents a65053246c29
children a7893294e9b2
comparison
equal deleted inserted replaced
3:0edcde404b02 4:66c0e10c89fc
14 serde_crate = { package = "serde", version = "1.0.117", optional = true, features = ["derive"] } 14 serde_crate = { package = "serde", version = "1.0.117", optional = true, features = ["derive"] }
15 serde_str_helpers = { version = "0.1.0", optional = true } 15 serde_str_helpers = { version = "0.1.0", optional = true }
16 parse_arg = { version = "0.1.4", optional = true } 16 parse_arg = { version = "0.1.4", optional = true }
17 libsystemd = "0.2.1" 17 libsystemd = "0.2.1"
18 lazy_static = "1.4.0" 18 lazy_static = "1.4.0"
19 tokio_0_2 = { package = "tokio", version = "0.2", optional = true, features = ["tcp"] } 19 tokio_0_2 = { package = "tokio", version = "0.2", optional = true, features = ["tcp", "dns"] }
20 tokio_0_3 = { package = "tokio", version = "0.3", optional = true, features = ["net"] } 20 tokio_0_3 = { package = "tokio", version = "0.3", optional = true, features = ["net"] }
21 async-std = { version = "1.7.0", optional = true } 21 async-std = { version = "1.7.0", optional = true }