Files
riscv64-kernel/library/std/src/sys/net/hostname/mod.rs
2026-03-20 09:47:32 +01:00

16 lines
409 B
Rust

cfg_select! {
all(target_family = "unix", not(target_os = "espidf")) => {
mod unix;
pub use unix::hostname;
}
// `GetHostNameW` is only available starting with Windows 8.
all(target_os = "windows", not(target_vendor = "win7")) => {
mod windows;
pub use windows::hostname;
}
_ => {
mod unsupported;
pub use unsupported::hostname;
}
}