#net #std #ip #datagram #remove #type #module #long

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

#509 in Network programming

Download history 36287/week @ 2023-02-11 35396/week @ 2023-02-18 41973/week @ 2023-02-25 42554/week @ 2023-03-04 48886/week @ 2023-03-11 52963/week @ 2023-03-18 47346/week @ 2023-03-25 39275/week @ 2023-04-01 30616/week @ 2023-04-08 28170/week @ 2023-04-15 24340/week @ 2023-04-22 21554/week @ 2023-04-29 25226/week @ 2023-05-06 23849/week @ 2023-05-13 23909/week @ 2023-05-20 19236/week @ 2023-05-27

95,536 downloads per month
Used in 190 crates (25 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