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

#100 in Configuration

Download history 2632/week @ 2024-07-18 2030/week @ 2024-07-25 1852/week @ 2024-08-01 2173/week @ 2024-08-08 1794/week @ 2024-08-15 1957/week @ 2024-08-22 2042/week @ 2024-08-29 1988/week @ 2024-09-05 1380/week @ 2024-09-12 1570/week @ 2024-09-19 1982/week @ 2024-09-26 1951/week @ 2024-10-03 2688/week @ 2024-10-10 2302/week @ 2024-10-17 1922/week @ 2024-10-24 1682/week @ 2024-10-31

8,910 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