trust_dns_resolver/system_conf/
mod.rs

1// Copyright 2015-2017 Benjamin Fry <benjaminfry@me.com>
2//
3// Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or
4// http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
5// http://opensource.org/licenses/MIT>, at your option. This file may not be
6// copied, modified, or distributed except according to those terms.
7
8//! System configuration loading
9//!
10//! This module is responsible for parsing and returning the configuration from
11//!  the host system. It will read from the default location on each operating
12//!  system, e.g. most Unixes have this written to `/etc/resolv.conf`
13#![allow(missing_docs, unused_extern_crates)]
14
15#[cfg(unix)]
16#[cfg(feature = "system-config")]
17mod unix;
18
19#[cfg(unix)]
20#[cfg(feature = "system-config")]
21#[cfg_attr(docsrs, doc(cfg(all(feature = "system-config", unix))))]
22pub use self::unix::{parse_resolv_conf, read_system_conf};
23
24#[cfg(windows)]
25#[cfg(feature = "system-config")]
26mod windows;
27
28#[cfg(target_os = "windows")]
29#[cfg(feature = "system-config")]
30#[cfg_attr(docsrs, doc(cfg(all(feature = "system-config", windows))))]
31pub use self::windows::read_system_conf;