const-addrs 0.2.0

A set of macros for creating networking types from a string literal.
Documentation
1
2
3
4
5
6
7
8
9
10
11
error: invalid address: 192.168.1.1/300
 --> tests/fail/net.rs:4:18
  |
4 |     let _ = net!("192.168.1.1/300");
  |                  ^^^^^^^^^^^^^^^^^

error: invalid address: 2001:db8::32::23/129
 --> tests/fail/net.rs:5:18
  |
5 |     let _ = net!("2001:db8::32::23/129");
  |                  ^^^^^^^^^^^^^^^^^^^^^^