File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ jobs:
209
209
- name : Install Rust
210
210
run : rustup update stable && rustup default stable && rustup target add ${{ matrix.target }}
211
211
- 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-date gix-glob gix-hash gix-hashtable gix-mailmap gix-object gix-packetline gix-path 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-validate; do (cd $name && cargo build --target ${{ matrix.target }}); done
213
213
name : crates without feature toggles
214
214
- 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
215
215
name : features of gix-features
Original file line number Diff line number Diff line change @@ -52,8 +52,13 @@ pub mod interpolate {
52
52
/// or any other error occurred.
53
53
/// It can be used as `home_for_user` parameter in [`Path::interpolate()`][crate::Path::interpolate()].
54
54
#[ cfg_attr( windows, allow( unused_variables) ) ]
55
+ #[ cfg_attr( all( target_family = "wasm" , not( target_os = "emscripten" ) ) , allow( unused_variables) ) ]
55
56
pub fn home_for_user ( name : & str ) -> Option < PathBuf > {
56
- #[ cfg( not( any( target_os = "android" , target_os = "windows" ) ) ) ]
57
+ #[ cfg( not( any(
58
+ target_os = "android" ,
59
+ target_os = "windows" ,
60
+ all( target_family = "wasm" , not( target_os = "emscripten" ) )
61
+ ) ) ) ]
57
62
{
58
63
let cname = std:: ffi:: CString :: new ( name) . ok ( ) ?;
59
64
// SAFETY: calling this in a threaded program that modifies the pw database is not actually safe.
@@ -71,7 +76,11 @@ pub mod interpolate {
71
76
Some ( std:: ffi:: OsStr :: from_bytes ( cstr. to_bytes ( ) ) . into ( ) )
72
77
}
73
78
}
74
- #[ cfg( any( target_os = "android" , target_os = "windows" ) ) ]
79
+ #[ cfg( any(
80
+ target_os = "android" ,
81
+ target_os = "windows" ,
82
+ all( target_family = "wasm" , not( target_os = "emscripten" ) )
83
+ ) ) ]
75
84
{
76
85
None
77
86
}
You can’t perform that action at this time.
0 commit comments