chore(client): refine unsafe code restrictions for Linux ancillary features

Transition from a global forbid to a scoped deny for unsafe code to accommodate necessary low-level operations in the Linux receive implementation.
This commit is contained in:
Nils Andreas Svee committed 2026-05-10 20:56:43 +07:00
1 parent 3ff6a07225
commit 1c7f0ea22f
2 files changed
+2

No files matched your search

+1
View File
@@ -2,6 +2,7 @@
not(all(target_os = "linux", feature = "ancillary")), not(all(target_os = "linux", feature = "ancillary")),
forbid(unsafe_code) forbid(unsafe_code)
)] )]
#![cfg_attr(all(target_os = "linux", feature = "ancillary"), deny(unsafe_code))]
mod client; mod client;
mod config; mod config;
+1
View File
@@ -1,3 +1,4 @@
#![allow(unsafe_code)]
use std::{ use std::{
io, mem, io, mem,
net::{SocketAddr, UdpSocket}, net::{SocketAddr, UdpSocket},