diff options
author | Ferris Tseng <ferristseng@fastmail.fm> | 2020-07-18 22:51:58 -0400 |
---|---|---|
committer | Ferris Tseng <ferristseng@fastmail.fm> | 2020-07-18 22:51:58 -0400 |
commit | 0350796fe583ea4ed0e8eb2d250e6b51b028aacd (patch) | |
tree | 68245e7d0de106db49d4ddd8f76e04a35115ff46 /ipfs-api | |
parent | a404a4e8ef2dca29153945ec20e5e0dff73cde66 (diff) |
upgrading dependencies
Diffstat (limited to 'ipfs-api')
-rw-r--r-- | ipfs-api/Cargo.toml | 8 | ||||
-rw-r--r-- | ipfs-api/src/client/from_uri.rs | 3 |
2 files changed, 7 insertions, 4 deletions
diff --git a/ipfs-api/Cargo.toml b/ipfs-api/Cargo.toml index 9f2ca23..e820690 100644 --- a/ipfs-api/Cargo.toml +++ b/ipfs-api/Cargo.toml @@ -35,10 +35,10 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" serde_urlencoded = "0.6" tokio = "0.2" -tokio-util = { version = "0.2", features = ["codec"] } -walkdir = "2.2" -dirs = "2.0" -parity-multiaddr = "0.7.3" +tokio-util = { version = "0.3", features = ["codec"] } +walkdir = "2.3" +dirs = "3.0" +parity-multiaddr = "0.9" typed-builder = { version = "0.6", optional = true } [dev-dependencies] diff --git a/ipfs-api/src/client/from_uri.rs b/ipfs-api/src/client/from_uri.rs index 71a7385..8d22f41 100644 --- a/ipfs-api/src/client/from_uri.rs +++ b/ipfs-api/src/client/from_uri.rs @@ -104,6 +104,9 @@ pub trait TryFromUri: Sized { Self::from_ipv6(scheme, SocketAddrV6::new(v6addr, port, 0, 0)).unwrap(), ) } + Protocol::Dns(ref hostname) => { + return Ok(Self::from_host_and_port(scheme, hostname, port).unwrap()) + } Protocol::Dns4(ref v4host) => { return Ok(Self::from_host_and_port(scheme, v4host, port).unwrap()) } |