ana_gotatun/
lib.rs

1// Copyright (c) 2019 Cloudflare, Inc. All rights reserved.
2//
3// Modified by Mullvad VPN.
4// Copyright (c) 2025 Mullvad VPN.
5//
6// SPDX-License-Identifier: BSD-3-Clause
7
8//! A library implementation of [WireGuard](https://www.wireguard.com/).
9
10#[cfg(feature = "device")]
11pub mod device;
12
13pub mod noise;
14pub mod packet;
15pub mod tun;
16pub mod udp;
17
18mod task;
19
20#[cfg(not(feature = "mock_instant"))]
21pub(crate) mod sleepyinstant;
22
23#[cfg(feature = "device")]
24pub(crate) mod serialization;
25
26/// Re-export of the x25519 types
27pub mod x25519 {
28    pub use x25519_dalek::{
29        EphemeralSecret, PublicKey, ReusableSecret, SharedSecret, StaticSecret,
30    };
31}