diff --git a/src/mako/Cargo.toml.mako b/src/mako/Cargo.toml.mako index 64fcdda786..0b00fd0e2c 100644 --- a/src/mako/Cargo.toml.mako +++ b/src/mako/Cargo.toml.mako @@ -26,7 +26,7 @@ name = "${util.program_name()}" % endif [dependencies] -hyper = ">= 0.6.8" +hyper = "0.7.0" ## Must match the one hyper uses, otherwise there are duplicate similarly named `Mime` structs mime = "0.1.0" serde = ">= 0.6.0" diff --git a/src/rust/api/cmn.rs b/src/rust/api/cmn.rs index 6c5f90fe2a..74d761c4a0 100644 --- a/src/rust/api/cmn.rs +++ b/src/rust/api/cmn.rs @@ -112,6 +112,14 @@ impl hyper::net::NetworkStream for DummyNetworkStream { fn peer_addr(&mut self) -> io::Result { Ok("127.0.0.1:1337".parse().unwrap()) } + + fn set_read_timeout(&self, _dur: Option) -> io::Result<()> { + Ok(()) + } + + fn set_write_timeout(&self, _dur: Option) -> io::Result<()> { + Ok(()) + } }