From 172f8163139f8112b76d462198a1213a5cb49dde Mon Sep 17 00:00:00 2001 From: Gus Power Date: Sat, 7 Jun 2025 14:55:21 +0100 Subject: first test of Junie - add network module for detecting available network adapters --- Cargo.toml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index de42a63..2262aa4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,9 +6,18 @@ description = "A command line interface (CLI) tool for syncing public WAN ip add repository = "https://github.com/guspower/multiwan-dyndns" license = "MIT OR Apache-2.0" +# Both a library and a binary +[[bin]] +name = "multiwan-dyndns" +path = "src/main.rs" + +[lib] +name = "multiwan_dyndns" +path = "src/lib.rs" + [dependencies] reqwest = "0.12.15" -tokio = { version = "1.45.0", features = ["rt", "rt-multi-thread", "macros"] } +tokio = { version = "1.45.1", features = ["rt", "rt-multi-thread", "macros"] } http = { version = "1.3.1" } serde_json = "1.0.140" serde = { version = "1.0.219", features = ["derive"] } @@ -19,6 +28,10 @@ env_logger = "0.11.8" clap = { version = "4.5.38", features = ["derive", "string"] } log = "0.4.27" homedir = "0.3.4" +network-interface = "2.0.1" [dev-dependencies] wiremock = "0.6.3" + +[profile.dev] +debug = false -- cgit v1.2.3