Tracking Issue for std::net::hostname #135142
Labels
A-io
Area: `std::io`, `std::fs`, `std::net` and `std::path`
C-tracking-issue
Category: An issue tracking the progress of sth. like the implementation of an RFC
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
Feature gate:
#![feature(gethostname)]
This is a tracking issue for retrieving the device's hostname.
rust-lang/libs-team#330 goes into far more detail; basically, "it seems to be a small but useful addition to
std::net
"Public API
Steps / History
Unresolved Questions
netc
be fine for all targets that supportstd
, or do we need to do more here? I think so, since any new targets without a libc can just expose the same function signature undernetc
(gethostname(ptr, len)
)Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩
The text was updated successfully, but these errors were encountered: