-
-
Notifications
You must be signed in to change notification settings - Fork 334
Open
Labels
A-uriArea: Uri and partsArea: Uri and partsE-easyEffort: easy. Start here :DEffort: easy. Start here :DS-featureSeverity: feature. This adds something new.Severity: feature. This adds something new.
Description
Currently using from_static
to build Uri
, Authority
, or PathAndQuery
types can't be done in a const context. From inspecting what they do under the hood, it seems like the parsing logic would be possible to extract into a const fn
. Is there some other limitation preventing these methods from being const?
My use case is building Uri
components at compile time for trivial assembly at runtime.
incker and CathalMullan
Metadata
Metadata
Assignees
Labels
A-uriArea: Uri and partsArea: Uri and partsE-easyEffort: easy. Start here :DEffort: easy. Start here :DS-featureSeverity: feature. This adds something new.Severity: feature. This adds something new.