Repository: tokio-rs/tokio (language: rust)

Issue:
The required feature flag of `UdpSocket` is not shown like the other net components.
**Version**
tokio: 1.41.0


**Description**
`UdpSocket` needs the `net` feature to be enabled but the docs.rs doesn't show this.

- `UdpSocket`
![image](https://github.com/user-attachments/assets/e396e566-d549-43df-93a5-18928b0f4426)

- `TcpSocket`
![image](https://github.com/user-attachments/assets/706cea32-1937-465a-a06b-d34a07d26924)




Discussion / hints:

Fix patch:
diff --git a/tokio/src/net/mod.rs b/tokio/src/net/mod.rs
index d5562ac5d47..fdc83f49981 100644
--- a/tokio/src/net/mod.rs
+++ b/tokio/src/net/mod.rs
@@ -46,6 +46,7 @@ cfg_net! {
         pub use tcp::socket::TcpSocket;
 
         mod udp;
+        #[doc(inline)]
         pub use udp::UdpSocket;
     }
 }


Test patch: