Skip to content

Commit 108c4ed

Browse files
Merge pull request #113 from DefGuard/defguard-boringtun
Remove boringtun submodule and use published version of defguard_boringtun
2 parents d2a0914 + 54787c8 commit 108c4ed

7 files changed

Lines changed: 32 additions & 34 deletions

File tree

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
[submodule "boringtun"]
2-
path = boringtun
3-
url = ../boringtun.git

Cargo.lock

Lines changed: 27 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ tracing = "0.1"
2525
tracing-subscriber = "0.3"
2626

2727
[target.'cfg(unix)'.dependencies]
28-
boringtun = { path = "boringtun/boringtun", default-features = false, features = [
28+
defguard_boringtun = { version = "0.6.0", default-features = false, features = [
2929
"device",
30-
] }
30+
]}
3131
libc = { version = "0.2", default-features = false }
3232
nix = { version = "0.30", features = ["ioctl", "socket"] }
3333

boringtun

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,5 @@ pub enum WireguardInterfaceError {
4949
WindowsError(#[from] WindowsError),
5050
#[cfg(unix)]
5151
#[error("BoringTun {0}")]
52-
BoringTun(#[from] boringtun::device::Error),
52+
BoringTun(#[from] defguard_boringtun::device::Error),
5353
}

src/wgapi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
use std::marker::PhantomData;
33

44
#[cfg(unix)]
5-
use boringtun::device::DeviceHandle;
5+
use defguard_boringtun::device::DeviceHandle;
66
#[cfg(target_os = "windows")]
77
use wireguard_nt::Adapter;
88

src/wgapi_userspace.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use std::{
66
time::Duration,
77
};
88

9-
use boringtun::device::{DeviceConfig, DeviceHandle};
9+
use defguard_boringtun::device::{DeviceConfig, DeviceHandle};
1010

1111
#[cfg(target_os = "linux")]
1212
use crate::netlink;

0 commit comments

Comments
 (0)