mirror of
https://github.com/jmcorgan/fips.git
synced 2026-10-05 11:08:25 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user