9 releases

0.3.4 Aug 16, 2023
0.3.3 Jul 26, 2023
0.3.2 Jun 16, 2022
0.3.1 Jul 28, 2021
0.1.0 Jul 22, 2021

#199 in Configuration

Download history 2035/week @ 2024-03-14 2240/week @ 2024-03-21 2117/week @ 2024-03-28 2295/week @ 2024-04-04 2232/week @ 2024-04-11 1785/week @ 2024-04-18 1962/week @ 2024-04-25 1849/week @ 2024-05-02 1997/week @ 2024-05-09 2420/week @ 2024-05-16 2056/week @ 2024-05-23 2001/week @ 2024-05-30 2208/week @ 2024-06-06 2078/week @ 2024-06-13 1783/week @ 2024-06-20 1606/week @ 2024-06-27

8,033 downloads per month

MIT license

13KB
319 lines

no proxy

This crate is a simple NO_PROXY parser and evaluator. It follows this article from Gitlab on how to properly implement it.

Usage

use no_proxy::NoProxy;

let no_proxy = NoProxy::from(".foo.bar,bar.baz,10.42.1.1/24,::1,10.124.7.8,2001::/17");
if no_proxy.matches("bar.baz") {
    println!("matches 'bar.baz'");
}

Dependencies

~3–15MB
~190K SLoC