From 4ddb305dd3cd4f9f8b9bf9799a8af7876c5f914d Mon Sep 17 00:00:00 2001 From: Dmitry Tantsur Date: Mon, 23 Jun 2025 21:14:30 +0200 Subject: [PATCH 1/2] fix: make more dependencies optional --- Cargo.toml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3584a92014..d5cf5195ad 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,7 +20,7 @@ block-storage = [] compute = [] identity = [] # reserved for future use image = [] -network = [] +network = ["macaddr", "ipnet"] native-tls = ["reqwest/default-tls", "osauth/native-tls"] object-storage = ["tokio-util"] rustls = ["reqwest/rustls-tls", "osauth/rustls"] @@ -29,13 +29,12 @@ rustls = ["reqwest/rustls-tls", "osauth/rustls"] async-stream = "^0.3" async-trait = "^0.1" chrono = { version = "^0.4", features = ["serde"] } -macaddr = { version = "^1.0", features = ["serde_std"]} +macaddr = { version = "^1.0", features = ["serde_std"], optional = true } futures = "^0.3" -ipnet = { version = "^2.0", features = ["serde"] } +ipnet = { version = "^2.0", features = ["serde"], optional = true } json-patch = { version = "^3.0", default-features = false, optional = true } log = "^0.4" osauth = { version = "^0.5", default-features = false, features = ["stream"] } -pin-project = "^1.0" reqwest = { version = "^0.12", default-features = false, features = ["gzip", "http2", "json", "stream"] } serde = "^1.0" serde_derive = "^1.0" From 2b5a38a4bb2e61758851423be2ec39002a8d18aa Mon Sep 17 00:00:00 2001 From: Dmitry Tantsur Date: Mon, 23 Jun 2025 21:17:53 +0200 Subject: [PATCH 2/2] chore: update json-patch to 4.0 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index d5cf5195ad..ffff4a8517 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,7 +32,7 @@ chrono = { version = "^0.4", features = ["serde"] } macaddr = { version = "^1.0", features = ["serde_std"], optional = true } futures = "^0.3" ipnet = { version = "^2.0", features = ["serde"], optional = true } -json-patch = { version = "^3.0", default-features = false, optional = true } +json-patch = { version = "^4.0", default-features = false, optional = true } log = "^0.4" osauth = { version = "^0.5", default-features = false, features = ["stream"] } reqwest = { version = "^0.12", default-features = false, features = ["gzip", "http2", "json", "stream"] }