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 1866/week @ 2024-08-16 2178/week @ 2024-08-23 1769/week @ 2024-08-30 2015/week @ 2024-09-06 1253/week @ 2024-09-13 1788/week @ 2024-09-20 1988/week @ 2024-09-27 1956/week @ 2024-10-04 2811/week @ 2024-10-11 2122/week @ 2024-10-18 2019/week @ 2024-10-25 2077/week @ 2024-11-01 2714/week @ 2024-11-08 2612/week @ 2024-11-15 2301/week @ 2024-11-22 2580/week @ 2024-11-29

10,600 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