refactor(transport): keep the link watcher out of the public library API

`transport::watcher` was published as `pub mod`, which makes `LinkWatcher` and
its group constants part of the crate's compatibility surface. Every caller is
in-crate — `node::netmon` and its tests, reached as `crate::transport::watcher`
— so nothing outside the crate is relying on it, and publishing it would commit
the library to the shape before anyone has asked for that shape.

Narrowed to `pub(crate) mod`. This is a one-line change now and a breaking one
after a release carries it.
This commit is contained in:
Johnathan Corgan
2026-09-06 22:33:45 +00:00
parent b922568dca
commit fc5b4ade24
+6 -1
View File
@@ -17,8 +17,13 @@ pub mod ethernet;
/// Kernel link-event notifications, shared by any transport or detector that
/// needs to react to interface state without polling for it.
///
/// Crate-internal on purpose. It is a mechanism the node's own subsystems
/// share, not a surface an embedder builds against, and publishing it would
/// commit the library to its shape before anything outside the crate has asked
/// for it.
#[cfg(unix)]
pub mod watcher;
pub(crate) mod watcher;
#[cfg(ble_available)]
pub mod ble;