Skip to content

Commit

Permalink
Add wasm32 target
Browse files Browse the repository at this point in the history
Signed-off-by: Xuanwo <[email protected]>
  • Loading branch information
Xuanwo committed Sep 23, 2024
1 parent 46ae5f6 commit 3c2d710
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/reqsign/src/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ impl Env for OsEnv {
fn home_dir(&self) -> Option<PathBuf> {
windows::home_dir_inner()
}

#[cfg(target_os = "wasm32")]
fn home_dir(&self) -> Option<PathBuf> {
None
}
}

/// Implements Env for the mock context.
Expand Down

0 comments on commit 3c2d710

Please sign in to comment.