-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.
Description
The only standard way I've found to parse an IP address is IpAddr::from_str
. That function immediately converts the string to bytes:
rust/library/std/src/net/parser.rs
Line 44 in 5f4e067
Parser { state: input.as_bytes() } |
It would be great to expose some way (not necessarily Parser::new
, but something similar) that doesn't require doing unnecessary utf8 validation.
@rustbot label: +T-libs +C-enhancement
Metadata
Metadata
Assignees
Labels
C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.