10 releases

0.3.5 Oct 4, 2024
0.3.4 Aug 16, 2023
0.3.3 Jul 26, 2023
0.3.2 Jun 16, 2022
0.1.0 Jul 22, 2021

#103 in Configuration

Download history 2052/week @ 2024-07-28 2069/week @ 2024-08-04 1937/week @ 2024-08-11 1673/week @ 2024-08-18 2364/week @ 2024-08-25 1764/week @ 2024-09-01 1828/week @ 2024-09-08 1211/week @ 2024-09-15 1984/week @ 2024-09-22 2046/week @ 2024-09-29 2546/week @ 2024-10-06 2122/week @ 2024-10-13 2125/week @ 2024-10-20 2145/week @ 2024-10-27 1970/week @ 2024-11-03 2664/week @ 2024-11-10

9,024 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

~0.6–3MB
~73K SLoC