Skip to content

Commit db147b9

Browse files
authored
Merge pull request #1549 from ChanTsune/gix-url-wasi
Support compile `gix-url` to wasm32-wasi
2 parents a64d94e + b87eee6 commit db147b9

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ jobs:
209209
- name: Install Rust
210210
run: rustup update stable && rustup default stable && rustup target add ${{ matrix.target }}
211211
- uses: Swatinem/rust-cache@v2
212-
- run: set +x; for name in gix-actor gix-attributes gix-bitmap gix-chunk gix-command gix-commitgraph gix-config-value gix-date gix-glob gix-hash gix-hashtable gix-mailmap gix-object gix-packetline gix-path gix-pathspec gix-prompt gix-quote gix-refspec gix-revision gix-traverse gix-validate; do (cd $name && cargo build --target ${{ matrix.target }}); done
212+
- run: set +x; for name in gix-actor gix-attributes gix-bitmap gix-chunk gix-command gix-commitgraph gix-config-value gix-date gix-glob gix-hash gix-hashtable gix-mailmap gix-object gix-packetline gix-path gix-pathspec gix-prompt gix-quote gix-refspec gix-revision gix-traverse gix-url gix-validate; do (cd $name && cargo build --target ${{ matrix.target }}); done
213213
name: crates without feature toggles
214214
- run: set +x; for feature in progress fs-walkdir-parallel parallel io-pipe crc32 zlib zlib-rust-backend fast-sha1 rustsha1 cache-efficiency-debug; do (cd gix-features && cargo build --features $feature --target ${{ matrix.target }}); done
215215
name: features of gix-features

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gix-url/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ serde = { version = "1.0.114", optional = true, default-features = false, featur
2424
thiserror = "1.0.32"
2525
url = "2.5.2"
2626
bstr = { version = "1.3.0", default-features = false, features = ["std"] }
27-
home = "0.5.5"
2827

2928
document-features = { version = "0.2.0", optional = true }
3029

gix-url/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ pub fn parse(input: &BStr) -> Result<Url, parse::Error> {
4848
/// If more precise control of the resolution mechanism is needed, then use the [expand_path::with()] function.
4949
pub fn expand_path(user: Option<&expand_path::ForUser>, path: &BStr) -> Result<PathBuf, expand_path::Error> {
5050
expand_path::with(user, path, |user| match user {
51-
expand_path::ForUser::Current => home::home_dir(),
51+
expand_path::ForUser::Current => gix_path::env::home_dir(),
5252
expand_path::ForUser::Name(user) => {
53-
home::home_dir().and_then(|home| home.parent().map(|home_dirs| home_dirs.join(user.to_string())))
53+
gix_path::env::home_dir().and_then(|home| home.parent().map(|home_dirs| home_dirs.join(user.to_string())))
5454
}
5555
})
5656
}

0 commit comments

Comments
 (0)