build(deps): bump Rust dependencies (#9192)

A mass upgrade of our Rust dependencies. Most crucially, these remove
several duplicated dependencies from our tree.

- The Tauri plugins have been stuck on `windows v0.60` for a while. They
are now updated to use `windows v0.61` which is what the rest of our
dependency tree uses.
- By bumping `axum`, can also bump `reqwest` which reduces a few more
duplicated dependencies.
- By removing `env_logger`, we can get rid of a few dependencies.
This commit is contained in:
Thomas Eizinger
2025-05-22 23:15:01 +10:00
committed by GitHub
parent 029d6ba6ee
commit cee4be9e24
6 changed files with 1141 additions and 899 deletions

2005
rust/Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -42,7 +42,7 @@ apple-client-ffi = { path = "apple-client-ffi" }
arboard = { version = "3.5.0", default-features = false }
async-trait = { version = "0.1", default-features = false }
atomicwrites = "0.4.4"
axum = { version = "0.7.9", default-features = false }
axum = { version = "0.8.4", default-features = false }
aya = { git = "https://github.com/aya-rs/aya" }
aya-build = { git = "https://github.com/aya-rs/aya" }
aya-ebpf = { git = "https://github.com/aya-rs/aya" }
@@ -69,7 +69,6 @@ dns-over-tcp = { path = "connlib/dns-over-tcp" }
dns-types = { path = "connlib/dns-types" }
ebpf-shared = { path = "relay/ebpf-shared" }
either = "1"
env_logger = "0.11.6"
etherparse = { version = "0.17", default-features = false }
etherparse-ext = { path = "connlib/etherparse-ext" }
firezone-bin-shared = { path = "bin-shared" }

View File

@@ -85,7 +85,6 @@ ignore = [
"RUSTSEC-2024-0418",
"RUSTSEC-2024-0419",
"RUSTSEC-2024-0420",
"RUSTSEC-2024-0421",
"RUSTSEC-2025-0012", # backoff, See #8386
"RUSTSEC-2024-0436", # paste, See #8387
@@ -119,9 +118,10 @@ allow = [
"MPL-2.0",
"ISC",
"0BSD",
"Unicode-DFS-2016",
"Unicode-3.0",
"BSL-1.0",
"Zlib",
"CDLA-Permissive-2.0",
]
# The confidence threshold for detecting a license from license text.
# The higher the value, the more closely the license text must be to the
@@ -262,33 +262,27 @@ skip = [
"regex-automata",
"regex-syntax",
"rustix",
"siphasher",
"syn",
"sync_wrapper",
"thiserror",
"thiserror-impl",
"toml_edit",
"tower",
"wasi",
"windows",
"windows-collections",
"windows-core",
"windows-future",
"windows-implement",
"windows-numerics",
"windows-result",
"webpki-roots",
"windows-strings",
"windows-sys",
"windows-targets",
"windows_aarch64_gnullvm",
"windows_aarch64_msvc",
"windows_i686_gnu",
"windows_i686_gnullvm",
"windows_i686_msvc",
"windows_x86_64_gnu",
"windows_x86_64_gnullvm",
"windows_x86_64_msvc",
"winnow",
"winreg",
"zerocopy",
#"ansi_term@0.11.0",
#{ crate = "ansi_term@0.11.0", reason = "you can specify a reason why it can't be updated/removed" },
]

View File

@@ -8,7 +8,6 @@ license = { workspace = true }
[dependencies]
anyhow = { workspace = true }
async-trait = { workspace = true }
backoff = { workspace = true }
boringtun = { workspace = true }
chrono = { workspace = true }
@@ -49,7 +48,7 @@ uuid = { workspace = true, features = ["v4"] }
[target.'cfg(target_os = "linux")'.dependencies]
caps = { workspace = true }
jemallocator = { workspace = true }
nix = { workspace = true }
nix = { workspace = true, features = ["user"] }
dns-lookup = { workspace = true }
[target.'cfg(target_os = "macos")'.dependencies]

View File

@@ -5,7 +5,7 @@ edition = { workspace = true }
license = { workspace = true }
[package.metadata.cargo-udeps.ignore]
development = ["difference", "env_logger"]
development = ["difference"]
[dependencies]
anyhow = { workspace = true }
@@ -57,7 +57,6 @@ jemallocator = { workspace = true }
[dev-dependencies]
difference = { workspace = true }
env_logger = { workspace = true }
opentelemetry_sdk = { workspace = true, features = ["testing", "metrics"] }
test-strategy = { workspace = true }
tokio = { workspace = true, features = ["process", "macros", "net"] }

View File

@@ -28,7 +28,7 @@ fn can_answer_stun_request_from_ip4_address(
source: SocketAddrV4,
public_relay_addr: Ipv4Addr,
) {
let _ = env_logger::try_init();
let _guard = firezone_logging::test("debug");
let mut server = TestServer::new(public_relay_addr);
let transaction_id = request.transaction_id();
@@ -319,7 +319,7 @@ fn freeing_allocation_clears_all_channels(
) {
let now = Instant::now();
let _ = env_logger::try_init();
let _guard = firezone_logging::test("debug");
let mut server = TestServer::new(public_relay_addr).with_nonce(nonce);
let secret = server.auth_secret().to_owned();
@@ -391,7 +391,7 @@ fn ping_pong_relay(
) {
let now = Instant::now();
let _ = env_logger::try_init();
let _guard = firezone_logging::test("debug");
let mut server = TestServer::new(public_relay_addr).with_nonce(nonce);
let secret = server.auth_secret().to_owned();
@@ -502,7 +502,7 @@ fn allows_rebind_channel_after_expiry(
) {
let now = Instant::now();
let _ = env_logger::try_init();
let _guard = firezone_logging::test("debug");
let mut server = TestServer::new(public_relay_addr).with_nonce(nonce);
let secret = server.auth_secret().to_owned();
@@ -625,7 +625,7 @@ fn ping_pong_ip6_relay(
) {
let now = Instant::now();
let _ = env_logger::try_init();
let _guard = firezone_logging::test("debug");
let mut server =
TestServer::new((public_relay_ip4_addr, public_relay_ip6_addr)).with_nonce(nonce);