From a8df6d0b36bf792995a9e92c99253a01f3616feb Mon Sep 17 00:00:00 2001 From: DeFiDude <59237470+DeFiDude@users.noreply.github.com> Date: Sun, 17 May 2026 14:20:41 -0600 Subject: [PATCH] interface: note RNode TCP feature-gate cleanup --- crates/rns-interface/src/rnode.rs | 4 ++++ crates/rns-runtime/src/interface_factory.rs | 3 +++ 2 files changed, 7 insertions(+) diff --git a/crates/rns-interface/src/rnode.rs b/crates/rns-interface/src/rnode.rs index 674ad96..b7c2504 100644 --- a/crates/rns-interface/src/rnode.rs +++ b/crates/rns-interface/src/rnode.rs @@ -116,6 +116,10 @@ const RNODE_TCP_CONNECT_TIMEOUT_SECS: u64 = 5; // Transport abstraction +// TODO: Split TCP-backed RNode support out of the `serial` feature. The current +// shared stream keeps the initial TCP implementation small, but non-serial +// builds cannot use `port = tcp://...` until this module has transport-specific +// feature gates. /// Parsed representation of the `port` config field. #[cfg(feature = "serial")] #[derive(Debug, Clone)] diff --git a/crates/rns-runtime/src/interface_factory.rs b/crates/rns-runtime/src/interface_factory.rs index a412358..47dd953 100644 --- a/crates/rns-runtime/src/interface_factory.rs +++ b/crates/rns-runtime/src/interface_factory.rs @@ -274,6 +274,9 @@ pub fn synthesize_interface( "RNodeInterface '{name}' is an Android USB-OTG entry — skipped at startup; re-add from the UI after plugging the device in" ))); } + // TODO: Once rns-interface exposes TCP-backed RNode without the + // `serial` feature, route `tcp://` ports through that path instead + // of rejecting them in non-serial builds. #[cfg(feature = "serial")] { synthesize_rnode(name, section, mode)