Crate hostsmod[−][src]
Parsing library for hosts file common on Linux/UNIX systems. Represents different parts of the
file as faithfully as possible as Cow<str>
, allowing reconstruction of the original and in-
place modifications.
Intended to be compatible to any hosts file outlined in man 5 hosts
. Uses the nom parser
combinator library.
Enums
HostsPart | Part of a hosts file, representing all of the possible values. |
HostsPartFamily | Small enum representing the address family of an IP address. |
Functions
try_parse_hosts | Parses hosts file and returns |