Skip to content

Commit 315eb43

Browse files
committed
Fix no_std for deps
1 parent 0d14d5a commit 315eb43

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.github/workflows/main.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ jobs:
5050
matrix.rust == 'nightly'
5151
run: cargo test --test debugger_visualizer --features "url/serde,url/debugger_visualizer" -- --test-threads=1
5252
- name: Test `no_std` support
53-
run: cargo test --no-default-features --features=alloc
53+
run: cargo +nightly test --no-default-features --features=alloc
5454
- name: Build `aarch64-unknown-none` with `no_std`
55-
run: cargo +nightly build -Zbuild-std=core,alloc --target aarch64-unknown-none -v --release
55+
run: cargo +nightly build -Zbuild-std=core,alloc --target aarch64-unknown-none -v --release --no-default-features --features=alloc
5656

5757
WASM:
5858
runs-on: ubuntu-latest

url/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ serde = {version = "1.0", optional = true, features = ["derive"]}
3636
[features]
3737
default = ["std"]
3838
std = ["idna/std", "percent-encoding/std", "form_urlencoded/std", "alloc"]
39-
alloc = []
39+
alloc = ["idna/alloc", "percent-encoding/alloc", "form_urlencoded/alloc"]
4040
# UNSTABLE FEATURES (requires Rust nightly)
4141
# Enable to use the #[debugger_visualizer] attribute.
4242
debugger_visualizer = []

url/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -2966,6 +2966,7 @@ fn file_url_segments_to_pathbuf(
29662966
host: Option<&str>,
29672967
segments: str::Split<'_, char>,
29682968
) -> Result<PathBuf, ()> {
2969+
use alloc::vec::Vec;
29692970
use percent_encoding::percent_decode;
29702971
use std::ffi::OsStr;
29712972
#[cfg(any(unix, target_os = "redox"))]

0 commit comments

Comments
 (0)