Fix issue where bridge is not always present in containers #2

Merged
stphnsmpsn merged 1 commits from fix/optional_bridge into master 2023-09-12 18:30:17 -03:00
3 changed files with 16 additions and 2 deletions

11
Cargo.lock generated
View File

@@ -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",

View File

@@ -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"
url = "2.3.1"
# fix building on systems w/o pkg-config or package manager at all
openssl = { version = "0.10", features = ["vendored"] }

View File

@@ -59,7 +59,7 @@ pub struct NetworkSettings {
#[serde(rename_all = "PascalCase")]
pub struct Networks {
#[serde(rename(deserialize = "bridge"))]
pub bridge: Bridge,
pub bridge: Option<Bridge>,
}
#[derive(Debug, Serialize, Deserialize)]