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

#206 in Configuration

Download history 2143/week @ 2024-09-04 1470/week @ 2024-09-11 1251/week @ 2024-09-18 2078/week @ 2024-09-25 2076/week @ 2024-10-02 2437/week @ 2024-10-09 2522/week @ 2024-10-16 1906/week @ 2024-10-23 2058/week @ 2024-10-30 2335/week @ 2024-11-06 2900/week @ 2024-11-13 2583/week @ 2024-11-20 2134/week @ 2024-11-27 2659/week @ 2024-12-04 2532/week @ 2024-12-11 1816/week @ 2024-12-18

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