Skip to content

Commit b82816d

Browse files
authored
Merge pull request #51 from expressvpn/gha/rust-toolchain-update
[auto] Update Rust toolchain to 1.80.0
2 parents 79034c7 + 86f480a commit b82816d

File tree

7 files changed

+107
-81
lines changed

7 files changed

+107
-81
lines changed

Cargo.toml

+26
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,29 @@ debug = 1
1717
[workspace.lints.clippy]
1818
undocumented_unsafe_blocks = "deny"
1919
unsafe_code = "deny"
20+
21+
[workspace.dependencies]
22+
anyhow = "1.0.79"
23+
async-channel = { version = "2.1.1" }
24+
async-trait = "0.1.77"
25+
bytes = "1.5.0"
26+
clap = { version = "4.4.7", features = ["derive"] }
27+
ctrlc = { version = "3.4.2", features = ["termination"] }
28+
delegate = "0.12.0"
29+
educe = { version = "0.6.0", default-features = false, features = ["Debug"] }
30+
lightway-app-utils = { path = "./lightway-app-utils" }
31+
lightway-core = { path = "./lightway-core" }
32+
metrics = "0.23.0"
33+
more-asserts = "0.3.1"
34+
pnet = "0.35.0"
35+
rand = "0.8.5"
36+
serde = "1.0.189"
37+
socket2 = "0.5.5"
38+
test-case = "3.1.0"
39+
thiserror = "1.0.57"
40+
tokio = { version = "1.33.0", features = ["rt-multi-thread", "macros", "net", "time", "sync", "io-util"] }
41+
tokio-stream = "0.1.14"
42+
tokio-util = "0.7.10"
43+
tracing = "0.1.37"
44+
tracing-subscriber = "0.3.17"
45+
twelf = { version = "0.15.0", default-features = false, features = ["env", "clap", "yaml"]}

Earthfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ARG --global debian = bookworm
66
IMPORT github.com/earthly/lib/rust:a49d2a0f4028cd15666d19904f8fc5fbd0b9ba87 AS lib-rust
77

88
install-build-dependencies:
9-
FROM rust:1.79.0-$debian
9+
FROM rust:1.80.0-$debian
1010
WORKDIR /lightway
1111
RUN dpkg --add-architecture arm64
1212
RUN apt-get update -qq

lightway-app-utils/Cargo.toml

+17-17
Original file line numberDiff line numberDiff line change
@@ -11,34 +11,34 @@ readme = "README.md"
1111

1212
[features]
1313
default = [ "tokio" ]
14-
tokio = [ "dep:tokio", "dep:tokio-stream" ]
1514
io-uring = [ "dep:io-uring", "dep:async-channel", "dep:tokio", "dep:tokio-eventfd" ]
15+
tokio = [ "dep:tokio", "dep:tokio-stream" ]
1616

1717
[dependencies]
18-
lightway-core = { path = "../lightway-core" }
18+
anyhow = { workspace = true }
19+
async-channel = { workspace = true, optional = true }
20+
bytes = { workspace = true }
21+
clap = { workspace = true }
22+
dashmap = "6.0.1"
1923
humantime = "2.1.0"
20-
serde = "1.0.189"
21-
serde_with = "3.4.0"
22-
tokio = { version = "1.33.0", features = ["macros", "rt", "sync", "time"], optional = true }
23-
tokio-stream = { version = "0.1.14", optional = true }
24-
clap = { version = "4.4.7", features = ["derive"] }
25-
tracing-subscriber = { version = "0.3.17", features = ["json"] }
26-
tokio-util = "0.7.10"
2724
io-uring = { version = "0.6.3", optional = true }
28-
async-channel = { version = "2.1.1", optional = true }
25+
lightway-core = { workspace = true }
26+
metrics = { workspace = true }
27+
serde = { workspace = true }
28+
serde_with = "3.4.0"
29+
thiserror = { workspace = true }
30+
tokio = { workspace = true, optional = true }
2931
tokio-eventfd = { version = "0.2.1", optional = true }
30-
anyhow = "1.0.79"
31-
bytes = "1.5.0"
32-
dashmap = "6.0.1"
33-
thiserror = "1.0.57"
34-
metrics = "0.23.0"
32+
tokio-stream = { workspace = true, optional = true }
33+
tokio-util = { workspace = true }
34+
tracing-subscriber = { workspace = true, features = ["json"] }
3535
tun2 = { version = "2.0.3", features = ["async"] }
3636

3737
[[example]]
3838
name = "udprelay"
3939
path = "examples/udprelay.rs"
4040

4141
[dev-dependencies]
42-
async-trait = "0.1.77"
43-
pnet = "0.35.0"
42+
async-trait = { workspace = true }
43+
pnet = { workspace = true }
4444
tokio-tun = "0.11.2"

lightway-client/Cargo.toml

+20-20
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,30 @@ license = "GPL-2.0-only"
1111
[features]
1212
default = ["postquantum", "io-uring"]
1313
debug = ["lightway-core/debug"]
14-
postquantum = ["lightway-core/postquantum"]
1514
io-uring = ["lightway-app-utils/io-uring"]
15+
postquantum = ["lightway-core/postquantum"]
1616

1717
[dependencies]
18-
lightway-core = { path = "../lightway-core" }
19-
lightway-app-utils = { path = "../lightway-app-utils" }
20-
tokio = { version = "1.31.0", features = ["rt-multi-thread", "macros", "net", "time", "io-util"] }
21-
clap = { version = "4.4.1", features = ["derive"] }
22-
anyhow = "1.0.75"
23-
async-trait = "0.1.73"
24-
bytes = "1.4.0"
25-
serde = { version = "1.0.189", features = ["derive"] }
26-
tracing-subscriber = { version = "0.3.17" }
27-
tracing = "0.1.37"
28-
tokio-stream = { version = "0.1.14", features = ["time"] }
29-
twelf = { version = "0.15.0", default-features = false, features = ["env", "clap", "yaml"]}
30-
socket2 = "0.5.5"
18+
anyhow = { workspace = true }
19+
async-trait = { workspace = true }
20+
bytes = { workspace = true }
3121
bytesize = { version = "1.3.0", features = ["serde"] }
32-
libc = "0.2.152"
22+
clap = { workspace = true }
23+
ctrlc = { workspace = true }
24+
educe = { workspace = true }
3325
futures = "0.3.30"
34-
tokio-util = "0.7.10"
35-
ctrlc = { version = "3.4.2", features = ["termination"] }
36-
pnet = "0.35.0"
37-
educe = { version = "0.6.0", default-features = false, features = ["Debug"] }
26+
libc = "0.2.152"
27+
lightway-app-utils = { workspace = true }
28+
lightway-core = { workspace = true }
29+
pnet = { workspace = true }
30+
serde = { workspace = true, features = ["derive"] }
31+
socket2 = { workspace = true }
32+
tokio = { workspace = true }
33+
tokio-stream = { workspace = true, features = ["time"] }
34+
tokio-util = { workspace = true }
35+
tracing = { workspace = true }
36+
tracing-subscriber = { workspace = true}
37+
twelf = { workspace = true }
3838

3939
[dev-dependencies]
40-
more-asserts = "0.3.1"
40+
more-asserts = { workspace = true }

lightway-core/Cargo.toml

+17-17
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,25 @@ fuzzing_api = []
1717
postquantum = ["wolfssl/postquantum"]
1818

1919
[dependencies]
20-
bytes = "1.4.0"
21-
num_enum = "0.7.0"
22-
thiserror = "1.0.47"
23-
more-asserts = "0.3.1"
24-
wolfssl = { git = "https://github.com/expressvpn/wolfssl-rs", default-features = false }
25-
rand = "0.8.5"
26-
rand_core = "0.6.4"
27-
tracing = "0.1.37"
28-
pnet = "0.35.0"
29-
delegate = "0.12.0"
20+
bytes = { workspace = true }
21+
delegate = { workspace = true }
22+
if_chain = "1.0.2"
3023
lru = "0.12.1"
24+
metrics = { workspace = true }
25+
more-asserts = { workspace = true }
26+
num_enum = "0.7.0"
3127
once_cell = "1.19.0"
32-
metrics = "0.23.0"
33-
if_chain = "1.0.2"
28+
pnet = { workspace = true }
29+
rand = { workspace = true }
30+
rand_core = "0.6.4"
31+
thiserror = { workspace = true }
32+
tracing = { workspace = true }
33+
wolfssl = { git = "https://github.com/expressvpn/wolfssl-rs", default-features = false }
3434

3535
[dev-dependencies]
36-
async-trait = "0.1.73"
37-
test-case = "3.1.0"
36+
async-trait = { workspace = true }
3837
itertools = "0.13.0"
39-
tokio = { version = "1.31.0", features = ["rt-multi-thread", "macros", "net", "time", "sync", "io-util"] }
40-
tokio-stream = { version = "0.1.14" }
41-
lightway-app-utils = { path = "../lightway-app-utils" }
38+
lightway-app-utils = { workspace = true }
39+
test-case = { workspace = true }
40+
tokio = { workspace = true }
41+
tokio-stream = { workspace = true }

lightway-core/fuzz/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ cargo-fuzz = true
1111

1212
[dependencies]
1313
libfuzzer-sys = "0.4"
14-
bytes = "1.4.0"
14+
bytes = { workspace = true }
1515

1616
[dependencies.lightway-core]
17-
path = ".."
17+
workspace = true
1818
features = ["fuzzing_api"]
1919

2020
[[bin]]

lightway-server/Cargo.toml

+24-24
Original file line numberDiff line numberDiff line change
@@ -14,32 +14,32 @@ debug = ["lightway-core/debug"]
1414
io-uring = ["lightway-app-utils/io-uring"]
1515

1616
[dependencies]
17-
lightway-core = { path = "../lightway-core", features = ["postquantum"] }
18-
lightway-app-utils = { path = "../lightway-app-utils" }
19-
tokio = { version = "1.31.0", features = ["rt-multi-thread", "macros", "net", "time", "sync", "io-util"] }
20-
clap = { version = "4.4.1", features = ["derive"] }
21-
anyhow = "1.0.75"
22-
async-trait = "0.1.73"
23-
bytes = "1.4.0"
24-
delegate = "0.12.0"
25-
thiserror = "1.0.48"
26-
tracing-subscriber = { version = "0.3.17", features = ["json"] }
27-
tracing-log = "0.2.0"
28-
tracing = "0.1.37"
17+
anyhow = { workspace = true }
18+
async-channel = { workspace = true, optional = true }
19+
async-trait = { workspace = true }
20+
bytes = { workspace = true }
21+
clap = { workspace = true }
22+
ctrlc = { workspace = true }
23+
delegate = { workspace = true }
24+
educe = { workspace = true }
2925
ipnet = { version = "2.8.0", features = ["serde"]}
30-
metrics = "0.23.0"
26+
lightway-app-utils = { workspace = true }
27+
lightway-core = { workspace = true, features = ["postquantum"] }
28+
metrics = { workspace = true }
3129
metrics-util = "0.17.0"
32-
pnet = "0.35.0"
33-
rand = "0.8.5"
34-
tokio-stream = { version = "0.1.14", features = ["time"] }
30+
pnet = { workspace = true }
31+
rand = { workspace = true }
32+
serde = { workspace = true }
33+
socket2 = { workspace = true }
34+
thiserror = { workspace = true }
3535
time = "0.3.29"
36-
serde = "1.0.189"
37-
twelf = { version = "0.15.0" , default-features = false, features = ["env", "clap", "yaml"]}
38-
socket2 = "0.5.5"
39-
ctrlc = { version = "3.4.2", features = ["termination"] }
40-
async-channel = "2.1.1"
41-
educe = { version = "0.6.0", default-features = false, features = ["Debug"] }
36+
tokio = { workspace = true }
37+
tokio-stream = { workspace = true, features = ["time"] }
38+
tracing = { workspace = true }
39+
tracing-log = "0.2.0"
40+
tracing-subscriber = { workspace = true, features = ["json"] }
41+
twelf = { workspace = true }
4242

4343
[dev-dependencies]
44-
more-asserts = "0.3.1"
45-
test-case = "3.2.1"
44+
more-asserts = { workspace = true }
45+
test-case = { workspace = true }

0 commit comments

Comments
 (0)