#no #std #net

no-std no-std-net

Rust’s std::net… without the ‘std’.

9 releases (5 breaking)

0.6.0 Nov 7, 2021
0.5.0 Dec 3, 2020
0.4.0 Jul 13, 2020
0.3.0 Feb 29, 2020
0.1.0 Mar 22, 2018

#162 in Network programming

Download history 487/week @ 2021-09-28 759/week @ 2021-10-05 546/week @ 2021-10-12 409/week @ 2021-10-19 642/week @ 2021-10-26 551/week @ 2021-11-02 682/week @ 2021-11-09 369/week @ 2021-11-16 463/week @ 2021-11-23 788/week @ 2021-11-30 1080/week @ 2021-12-07 1362/week @ 2021-12-14 791/week @ 2021-12-21 1146/week @ 2021-12-28 1472/week @ 2022-01-04 1386/week @ 2022-01-11

4,902 downloads per month
Used in 31 crates (14 directly)

MIT license

170KB
3K SLoC

no-std-net

Rust's std::net except without the std.


lib.rs:

Networking primitives for TCP/UDP communication.

This module provides networking functionality for the Transmission Control and User Datagram Protocols, as well as types for IP and socket addresses. It has been ported from std::net to remove the dependency on std.

This crate is a WIP, issues, feedback and PRs are welcome as long as they follow the theme of "std::net" clone.

Organization

  • [IpAddr] represents IP addresses of either IPv4 or IPv6; [Ipv4Addr] and [Ipv6Addr] are respectively IPv4 and IPv6 addresses
  • [TcpListener] and [TcpStream] provide functionality for communication over TCP
  • [UdpSocket] provides functionality for communication over UDP
  • [SocketAddr] represents socket addresses of either IPv4 or IPv6; [SocketAddrV4] and [SocketAddrV6] are respectively IPv4 and IPv6 socket addresses
  • [ToSocketAddrs] is a trait that used for generic address resolution when interacting with networking objects like [TcpListener], [TcpStream] or [UdpSocket]
  • Other types are return or parameter types for various methods in this module

Dependencies