diff --git a/Cargo.lock b/Cargo.lock index ecd6c70..f892e02 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1046,6 +1046,15 @@ version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" +[[package]] +name = "openssl-src" +version = "300.1.3+3.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd2c101a165fff9935e34def4669595ab1c7847943c42be86e21503e482be107" +dependencies = [ + "cc", +] + [[package]] name = "openssl-sys" version = "0.9.93" @@ -1054,6 +1063,7 @@ checksum = "db4d56a4c0478783083cfafcc42493dd4a981d41669da64b4572a2a089b51b1d" dependencies = [ "cc", "libc", + "openssl-src", "pkg-config", "vcpkg", ] @@ -1545,6 +1555,7 @@ dependencies = [ "http", "http-body", "hyper", + "openssl", "prometheus", "reqwest", "rust_decimal", diff --git a/Cargo.toml b/Cargo.toml index a7d15a2..b69d95a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,4 +24,7 @@ thiserror = "1.0.38" tokio = { version = "1.28.2", features = ["full"] } tower = { version = "0.4.13", features = ["full"] } tower-http = { version = "0.3.5", features = ["full"] } -url = "2.3.1" \ No newline at end of file +url = "2.3.1" + +# fix building on systems w/o pkg-config or package manager at all +openssl = { version = "0.10", features = ["vendored"] } \ No newline at end of file diff --git a/src/docker/method/get_containers/models.rs b/src/docker/method/get_containers/models.rs index 18a77b9..22b2465 100644 --- a/src/docker/method/get_containers/models.rs +++ b/src/docker/method/get_containers/models.rs @@ -59,7 +59,7 @@ pub struct NetworkSettings { #[serde(rename_all = "PascalCase")] pub struct Networks { #[serde(rename(deserialize = "bridge"))] - pub bridge: Bridge, + pub bridge: Option, } #[derive(Debug, Serialize, Deserialize)]