summaryrefslogtreecommitdiffhomepage
path: root/talpid-core/src/lib.rs
blob: 80addefd901e05c8caa15288c2b7a5970e90024a (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
//! The core components of the talpidaemon VPN client.

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

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

mod offline;

/// Split tunneling
pub mod split_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;

/// 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;