Crates.io | swc-hosts |
lib.rs | swc-hosts |
version | 0.2.1 |
source | src |
created_at | 2016-12-19 18:25:52.433472 |
updated_at | 2017-07-06 18:38:31.352839 |
description | Safely parse /etc/hosts from Someone Who Cares. |
homepage | |
repository | https://github.com/clarcharr/swc-hosts |
max_upload_size | |
id | 7682 |
size | 12,550 |
/etc/hosts
from Someone Who CaresSomeone Who Cares offers very nice rules for /etc/hosts
, but sends data over
HTTP and doesn't provide checksums or signatures. This program parses through
the hosts file to ensure that the rules are safe. You may freely use and modify
this code under the CC0 1.0 Universal License.
To grab the hosts file, just run:
swc-hosts [TYPE]
Where TYPE
is either ipv4
or ipv6
.
For somehow less exciting documentation, you can find the rustdoc here.