mips support wireguard (#87)

This commit is contained in:
Sijie.Sun 2024-05-07 23:14:29 +08:00 committed by GitHub
parent 1280e1dde2
commit 14df3d3075
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 7 deletions

View File

@ -147,8 +147,8 @@ jobs:
cp libgcc_eh.a libunwind.a
# for mimalloc
ar x libgcc.a _ctzsi2.o _clz.o
ar rcs libctz.a _ctzsi2.o _clz.o
ar x libgcc.a _ctzsi2.o _clz.o _bswapsi2.o
ar rcs libctz.a _ctzsi2.o _clz.o _bswapsi2.o
rustup toolchain install nightly-x86_64-unknown-linux-gnu
rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu

5
Cargo.lock generated
View File

@ -387,9 +387,10 @@ dependencies = [
[[package]]
name = "boringtun"
version = "0.6.0"
source = "git+https://github.com/cloudflare/boringtun.git#f672bb6c1e1e371240a8d151f15854687eb740bb"
source = "git+https://github.com/KKRainbow/boringtun.git#449204c3eca736dc23b075d81426527a357e2f2a"
dependencies = [
"aead",
"atomic-shim",
"base64 0.13.1",
"blake2",
"chacha20poly1305",
@ -1309,7 +1310,7 @@ dependencies = [
"rand 0.8.5",
"rcgen",
"reqwest",
"ring 0.16.20",
"ring 0.17.8",
"rstest",
"rustls",
"serde",

View File

@ -125,8 +125,8 @@ network-interface = "1.1.1"
pathfinding = "4.9.1"
# for encryption
boringtun = { git = "https://github.com/cloudflare/boringtun.git", optional = true }
ring = { version = "0.16", optional = true }
boringtun = { git = "https://github.com/EasyTier/boringtun.git", optional = true }
ring = { version = "0.17", optional = true }
bitflags = "2.5"
aes-gcm = { version = "0.10.3", optional = true }
@ -168,7 +168,7 @@ defguard_wireguard_rs = "0.4.2"
[features]
default = ["wireguard", "quic", "mimalloc"]
mips = ["aes-gcm", "mimalloc"]
mips = ["aes-gcm", "mimalloc", "wireguard"]
wireguard = ["dep:boringtun", "dep:ring"]
quic = ["dep:quinn", "dep:rustls", "dep:rcgen"]
mimalloc = ["dep:mimalloc-rust"]