diff --git a/changelog.md b/changelog.md index c8b6a8f..cacb50c 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,12 @@ # Changelog +## 2026-04-01 - 1.19.1 - fix(rust) +clean up unused Rust warnings in bridge, network, and server modules + +- remove the unused error import from the bridge module +- mark IpPool.prefix_len as intentionally unused to suppress dead code warnings +- rename the unused socket shutdown sender binding in the server to an underscore-prefixed variable + ## 2026-04-01 - 1.19.0 - feat(forwarding) add hybrid forwarding mode with per-client bridge and VLAN settings diff --git a/rust/src/bridge.rs b/rust/src/bridge.rs index 108e4f8..0777768 100644 --- a/rust/src/bridge.rs +++ b/rust/src/bridge.rs @@ -13,7 +13,7 @@ use std::net::Ipv4Addr; use std::sync::Arc; use tokio::io::{AsyncReadExt, AsyncWriteExt}; use tokio::sync::mpsc; -use tracing::{debug, error, info, warn}; +use tracing::{debug, info, warn}; use crate::server::ServerState; diff --git a/rust/src/network.rs b/rust/src/network.rs index d7e0c8c..53631fd 100644 --- a/rust/src/network.rs +++ b/rust/src/network.rs @@ -8,6 +8,7 @@ pub struct IpPool { /// Network address (e.g., 10.8.0.0) network: Ipv4Addr, /// Prefix length (e.g., 24) + #[allow(dead_code)] prefix_len: u8, /// Allocated IPs: IP -> client_id allocated: HashMap, diff --git a/rust/src/server.rs b/rust/src/server.rs index 8dbc759..c81a05c 100644 --- a/rust/src/server.rs +++ b/rust/src/server.rs @@ -319,7 +319,7 @@ impl VpnServer { // Socket engine setup let (s_tx, s_rx) = mpsc::channel::>(4096); - let (s_shut_tx, s_shut_rx) = mpsc::channel::<()>(1); + let (_s_shut_tx, s_shut_rx) = mpsc::channel::<()>(1); // Bridge engine setup let phys_iface = match &config.bridge_physical_interface { diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index ccf1909..7264704 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@push.rocks/smartvpn', - version: '1.19.0', + version: '1.19.1', description: 'A VPN solution with TypeScript control plane and Rust data plane daemon' }