From 51b942ae58b207771e7e80e2843796c644674f40 Mon Sep 17 00:00:00 2001 From: Satoshi Konno Date: Sat, 23 Sep 2023 22:49:06 +0900 Subject: [PATCH] Update Cargo.toml --- Cargo.toml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 01e15461..4bde3bde 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,19 +14,23 @@ keywords = ["echonet", "echonet-lite", "std", "no_std"] [features] default = ["std"] -std = ["once_cell", "unix", "dep:uuid"] -no_std = ["once_cell"] +std = ["std_deps", "unix", ] +std_win = ["std_deps", "win"] +no_std = ["no_std_deps"] +std_deps = ["dep:log", "dep:uuid", "no_std_deps"] +no_std_deps = ["once_cell", "dep:strum", "dep:strum_macros"] unix = ["dep:pnet", "dep:ipnetwork", "dep:nix", "dep:net2"] +win = ["dep:pnet", "dep:ipnetwork", "dep:net2"] esp = ["no_std", "dep:esp-idf-sys"] -once_cell = ["dep:once_cell"] +once_cell=["dep:once_cell"] [dependencies] hex = "0.4" chrono = "0.4" -log = {version = "0.4.20", default-features = false} -strum = {version = "0.25", default-features = false} -strum_macros = {version = "0.25", default-features = false} -once_cell = {version = "1.17.0", default-features = false, features = ["std"], optional = true} +log = {version = "0.4.20", default-features = false, optional = true} +strum = {version = "0.25", default-features = false, optional = true} +strum_macros = {version = "0.25", default-features = false, optional = true} +once_cell = {version = "1.17.0", default-features = false, optional = true} pnet = { version = "0.28.0", optional = true } ipnetwork = { version = "0.16.0", optional = true } nix = { version = "0.25.0", optional = true }