Skip to content

Commit c04aca3

Browse files
fix: enable wasip2 feature for wasm32-wasip2 target (#960)
Signed-off-by: Brooks Townsend <[email protected]>
1 parent 54346fa commit c04aca3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

url/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ url = { version = "2", features = ["debugger_visualizer"] }
139139
feature = "debugger_visualizer",
140140
debugger_visualizer(natvis_file = "../../debug_metadata/url.natvis")
141141
)]
142+
// We use std::os::wasi::prelude::OsStrExt, and that is conditionally feature gated
143+
// to be unstable on wasm32-wasip2. https://github.com/rust-lang/rust/issues/130323
144+
#![cfg_attr(all(target_os = "wasi", target_env = "p2"), feature(wasip2))]
142145

143146
pub use form_urlencoded;
144147

0 commit comments

Comments
 (0)