summaryrefslogtreecommitdiffhomepage
path: root/talpid-core/src/lib.rs
blob: 585c0274ee0a779d5b26ed573414bfd1a98bba6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//! The core components of the talpidaemon VPN client.

#![deny(missing_docs)]
#![recursion_limit = "1024"]

/// Misc FFI utilities.
#[cfg(windows)]
#[macro_use]
mod ffi;

/// Window API wrappers and utilities
#[cfg(target_os = "windows")]
pub mod window;

mod offline;

/// Split tunneling
pub mod split_tunnel;

/// Abstracts over different VPN tunnel technologies
pub mod tunnel;

/// Helper function to preserve previous log files.
pub mod logging;

/// Abstractions and extra features on `std::mpsc`
pub mod mpsc;

/// Abstractions over operating system firewalls.
pub mod firewall;

/// Abstractions over operating system DNS settings.
pub mod dns;

/// State machine to handle tunnel configuration.
pub mod tunnel_state_machine;

/// Misc utilities for the Linux platform.
#[cfg(target_os = "linux")]
mod linux;

/// A resolver that's controlled by the tunnel state machine
#[cfg(target_os = "macos")]
pub(crate) mod resolver;

/// Connectivity monitor for Android
#[cfg(target_os = "android")]
pub mod connectivity_listener;