diff options
author | softprops <d.tangren@gmail.com> | 2015-08-08 14:40:34 -0400 |
---|---|---|
committer | softprops <d.tangren@gmail.com> | 2015-08-08 14:40:34 -0400 |
commit | f4866d4f87313a7d8f7f350cf221f5fe7b8a1d71 (patch) | |
tree | 3cf5cceb52b5394e48f0002d664400c3b8d4e550 | |
parent | dc5b09589cad44534e61a8818a8d1fb1236a7433 (diff) |
update deps
-rw-r--r-- | Cargo.lock | 111 | ||||
-rw-r--r-- | Cargo.toml | 18 | ||||
-rw-r--r-- | src/builder.rs | 8 | ||||
-rw-r--r-- | src/lib.rs | 9 |
4 files changed, 90 insertions, 56 deletions
@@ -2,19 +2,28 @@ name = "shiplift" version = "0.1.2" dependencies = [ - "httparse 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", - "hyper 0.6.4 (registry+https://github.com/rust-lang/crates.io-index)", + "httparse 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", + "hyper 0.6.8 (registry+https://github.com/rust-lang/crates.io-index)", "jed 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", - "mime 0.0.12 (registry+https://github.com/rust-lang/crates.io-index)", - "openssl 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)", + "mime 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", + "openssl 0.6.4 (registry+https://github.com/rust-lang/crates.io-index)", "rustc-serialize 0.3.15 (registry+https://github.com/rust-lang/crates.io-index)", - "unix_socket 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)", - "url 0.2.35 (registry+https://github.com/rust-lang/crates.io-index)", + "unix_socket 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)", + "url 0.2.36 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "advapi32-sys" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "winapi 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", + "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] name = "bitflags" -version = "0.1.1" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] @@ -22,10 +31,10 @@ name = "cookie" version = "0.1.21" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "openssl 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)", + "openssl 0.6.4 (registry+https://github.com/rust-lang/crates.io-index)", "rustc-serialize 0.3.15 (registry+https://github.com/rust-lang/crates.io-index)", - "time 0.1.26 (registry+https://github.com/rust-lang/crates.io-index)", - "url 0.2.35 (registry+https://github.com/rust-lang/crates.io-index)", + "time 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)", + "url 0.2.36 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -35,8 +44,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "gcc" -version = "0.3.8" +version = "0.3.12" source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "advapi32-sys 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "winapi 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", +] [[package]] name = "hpack" @@ -48,28 +61,28 @@ dependencies = [ [[package]] name = "httparse" -version = "0.1.4" +version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "hyper" -version = "0.6.4" +version = "0.6.8" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "cookie 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", - "httparse 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", + "httparse 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", "language-tags 0.0.7 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", - "mime 0.0.12 (registry+https://github.com/rust-lang/crates.io-index)", + "mime 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "num_cpus 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", - "openssl 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)", + "openssl 0.6.4 (registry+https://github.com/rust-lang/crates.io-index)", "rustc-serialize 0.3.15 (registry+https://github.com/rust-lang/crates.io-index)", - "solicit 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", - "time 0.1.26 (registry+https://github.com/rust-lang/crates.io-index)", + "solicit 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", + "time 0.1.32 (registry+https://github.com/rust-lang/crates.io-index)", "traitobject 0.0.1 (registry+https://github.com/rust-lang/crates.io-index)", "typeable 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", "unicase 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", - "url 0.2.35 (registry+https://github.com/rust-lang/crates.io-index)", + "url 0.2.36 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -81,13 +94,22 @@ dependencies = [ ] [[package]] +name = "kernel32-sys" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "winapi 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", + "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] name = "language-tags" version = "0.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "lazy_static" -version = "0.1.11" +version = "0.1.14" source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] @@ -97,10 +119,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "libressl-pnacl-sys" -version = "2.1.5" +version = "2.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "pnacl-build-helper 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", + "pnacl-build-helper 1.4.10 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -118,7 +140,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "mime" -version = "0.0.12" +version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "log 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -134,23 +156,23 @@ dependencies = [ [[package]] name = "openssl" -version = "0.6.2" +version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "bitflags 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", - "lazy_static 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)", + "bitflags 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)", + "lazy_static 0.1.14 (registry+https://github.com/rust-lang/crates.io-index)", "libc 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", - "openssl-sys 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)", + "openssl-sys 0.6.4 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] name = "openssl-sys" -version = "0.6.2" +version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "gcc 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", + "gcc 0.3.12 (registry+https://github.com/rust-lang/crates.io-index)", "libc 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", - "libressl-pnacl-sys 2.1.5 (registry+https://github.com/rust-lang/crates.io-index)", + "libressl-pnacl-sys 2.1.6 (registry+https://github.com/rust-lang/crates.io-index)", "pkg-config 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -161,7 +183,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "pnacl-build-helper" -version = "1.4.0" +version = "1.4.10" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "tempdir 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", @@ -169,10 +191,12 @@ dependencies = [ [[package]] name = "rand" -version = "0.3.8" +version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ + "advapi32-sys 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", "libc 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", + "winapi 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -182,7 +206,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "solicit" -version = "0.4.0" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "hpack 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -194,16 +218,17 @@ name = "tempdir" version = "0.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "rand 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", + "rand 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] name = "time" -version = "0.1.26" +version = "0.1.32" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "gcc 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", + "kernel32-sys 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", "libc 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", + "winapi 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -223,7 +248,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "unix_socket" -version = "0.4.3" +version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "debug-builders 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -232,10 +257,20 @@ dependencies = [ [[package]] name = "url" -version = "0.2.35" +version = "0.2.36" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "matches 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", "rustc-serialize 0.3.15 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "winapi" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "winapi-build" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" + @@ -11,14 +11,14 @@ keywords = ["docker", "unix", "containers", "hyper", "ship"] license = "MIT" [dependencies] -mime = "0.0.12" -httparse = "0.1.4" -jed = "0.1.2" -openssl = "0.6.2" -unix_socket = "0.4.3" -url = "0.2.35" -rustc-serialize = "0.3.15" +mime = "0.1" +httparse = "0.1" +jed = "0.1" +openssl = "0.6" +unix_socket = "0.4" +url = "0.2" +rustc-serialize = "0.3" [dependencies.hyper] -version = "0.6.4" -features = ["openssl"]
\ No newline at end of file +version = "0.6" +features = ["openssl", "timeouts"]
\ No newline at end of file diff --git a/src/builder.rs b/src/builder.rs index 2fc318a..99e5368 100644 --- a/src/builder.rs +++ b/src/builder.rs @@ -53,9 +53,9 @@ impl<'a> ContainerListBuilder<'a> { } let mut path = vec!["/containers/json".to_owned()]; if !params.is_empty() { - path.push(params.connect("&")) + path.push(params.join("&")) } - let raw = try!(self.docker.get(&path.connect("?"))); + let raw = try!(self.docker.get(&path.join("?"))); Ok(json::decode::<Vec<ContainerRep>>(&raw).unwrap()) } } @@ -136,9 +136,9 @@ impl<'a,'b,'c> Events<'a,'b,'c> { } let mut path = vec!["/events".to_owned()]; if !params.is_empty() { - path.push(params.connect("&")) + path.push(params.join("&")) } - let raw = try!(self.docker.stream_get(&path.connect("?")[..])); + let raw = try!(self.docker.stream_get(&path.join("?")[..])); let it = jed::Iter::new(raw).into_iter().map(|j| { let s = json::encode(&j).unwrap(); json::decode::<Event>(&s).unwrap() @@ -2,11 +2,11 @@ //! //! # examples //! -//! ``` +//! ```no_run //! extern crate shiplift; //! //! let mut docker = shiplift::Docker::new(); -//! let mut images = docker.images().list().unwrap(); +//! let images = docker.images().list().unwrap(); //! println!("docker images in stock"); //! for i in images { //! println!("{:?}", i.RepoTags); @@ -29,8 +29,7 @@ use hyper::{ Client, Url }; use hyper::net::{ HttpsConnector, Openssl }; use hyper::method::Method; use openssl::x509::X509FileType; -use openssl::ssl::error::SslError; -use openssl::ssl::{ SslContext, SslMethod, SSL_VERIFY_NONE }; +use openssl::ssl::{ SslContext, SslMethod }; use rep::Image as ImageRep; use rep::{ Change, ContainerDetails, Exit, History, @@ -135,7 +134,7 @@ impl<'a> Images<'a> { let query = names.iter() .map(|n| format!("names={}", n)) .collect::<Vec<String>>() - .connect("&"); + .join("&"); self.docker.stream_get(&format!("/images/get?{}", query)[..]) } |