#parser #file #etc-hosts

parse-hosts

Parser for an /etc/hosts file

5 releases (breaking)

Uses old Rust 2015

0.5.0 Sep 18, 2017
0.4.0 Jul 6, 2017
0.3.0 Dec 9, 2016
0.2.0 Dec 8, 2016
0.1.0 Dec 7, 2016

#4 in #etc-hosts


Used in swc-hosts

Custom license

22KB
588 lines

/etc/hosts parser

Parser for /etc/hosts. You may freely use and modify this code under the CC0 1.0 Universal License.

Usage

To use in your own project, just add the below to your Cargo.toml file.

[dependencies]
parse-hosts = "0.4"

For more formal documentation, you can find the rustdoc here.

Dependencies

~120KB