Expand description
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§
- Hosts
Part - Part of a hosts file, representing all of the possible values.
- Hosts
Part Family - Small enum representing the address family of an IP address.
Functions§
- try_
parse_ hosts - Parses hosts file and returns
Vec
of resulting parts.