Add more from the std
This commit is contained in:
15
library/std/src/sys/net/hostname/mod.rs
Normal file
15
library/std/src/sys/net/hostname/mod.rs
Normal file
@@ -0,0 +1,15 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user