diff --git a/Cargo.lock b/Cargo.lock index 861e9f7..d66281f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -740,8 +740,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7fcd999463524c52659517fe2cea98493cfe485d10565e7b0fb07dbba7ad2753" dependencies = [ "cfg-if 1.0.0", + "js-sys", "libc", "wasi", + "wasm-bindgen", ] [[package]] @@ -1646,6 +1648,7 @@ dependencies = [ "crossbeam-channel", "eframe", "eyre", + "getrandom", "image", "num-format", "objc", diff --git a/ps-gui/Cargo.toml b/ps-gui/Cargo.toml index 90adfa2..609dd7b 100644 --- a/ps-gui/Cargo.toml +++ b/ps-gui/Cargo.toml @@ -14,11 +14,9 @@ once_cell = "1.8.0" crossbeam-channel = "0.5.1" eframe = "0.15.0" num-format = "0.4.0" -tinyfiledialogs = "3.0" rand = "0.8.4" image = { version = "0.23", default-features = false, features = ["png"] } chrono = "0.4.19" -shellexpand = "2.1.0" ps-core = { path = "../ps-core" } [target."cfg(target_os = \"macos\")".dependencies.cocoa] @@ -28,5 +26,10 @@ version = "0.2.7" [target."cfg(not(target_arch = \"wasm32\"))".dependencies] ps-importer = { path = "../ps-importer" } -# Do I need this? ps-database = { path = "../ps-database" } +shellexpand = "2.1.0" +tinyfiledialogs = "3.0" + +[target."cfg(target_arch = \"wasm32\")".dependencies] +# https://docs.rs/getrandom/latest/getrandom/#webassembly-support +getrandom = { version = "0.2", features = ["js"] }