From f46aa92eba4dcfa96b4173ac50db697bbc5ed5cd Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Sat, 7 Nov 2020 14:35:42 +0100 Subject: [PATCH] Revert to aHash 0.4 again to allow Egui to be used inside of wasmtime --- Cargo.lock | 97 ++----------------------------------------------- egui/Cargo.toml | 4 +- 2 files changed, 5 insertions(+), 96 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index bf960358..333e2c25 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -23,13 +23,9 @@ checksum = "ee2a4ec343196209d6594e19543ae87a39f96d5534d7174822a3ad825dd6ed7e" [[package]] name = "ahash" -version = "0.5.6" +version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2deff5792519f5985c9cdd5a0399df3ca3419114841d282bae646acadbf0a99" -dependencies = [ - "getrandom", - "lazy_static", -] +checksum = "f6789e291be47ace86a60303502173d84af8327e3627ecf334356ee0f87a164c" [[package]] name = "andrew" @@ -81,12 +77,6 @@ dependencies = [ "rustc-demangle", ] -[[package]] -name = "base-x" -version = "0.2.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2734baf8ed08920ccecce1b48a2dfce4ac74a973144add031163bd21a1c5dab" - [[package]] name = "bitflags" version = "1.2.1" @@ -515,12 +505,6 @@ dependencies = [ "syn", ] -[[package]] -name = "discard" -version = "1.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "212d0f5754cb6769937f4501cc0e67f4f4483c8d2c3e1e922ee9edbe4ab4c7c0" - [[package]] name = "dispatch" version = "0.2.0" @@ -548,7 +532,6 @@ version = "0.2.0" dependencies = [ "ahash", "criterion", - "getrandom", "parking_lot", "rusttype", "serde", @@ -633,19 +616,6 @@ version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7" -[[package]] -name = "getrandom" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee8025cf36f917e6a52cce185b7c7177689b838b7ec138364e50cc2277a56cf4" -dependencies = [ - "cfg-if 0.1.10", - "libc", - "stdweb", - "wasi 0.9.0+wasi-snapshot-preview1", - "wasm-bindgen", -] - [[package]] name = "gimli" version = "0.23.0" @@ -1418,12 +1388,6 @@ dependencies = [ "serde", ] -[[package]] -name = "sha1" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2579985fda508104f7587689507983eadd6a6e84dd35d6d115361f530916fa0d" - [[package]] name = "shared_library" version = "0.1.9" @@ -1466,55 +1430,6 @@ dependencies = [ "wayland-protocols", ] -[[package]] -name = "stdweb" -version = "0.4.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d022496b16281348b52d0e30ae99e01a73d737b2f45d38fed4edf79f9325a1d5" -dependencies = [ - "discard", - "rustc_version", - "stdweb-derive", - "stdweb-internal-macros", - "stdweb-internal-runtime", - "wasm-bindgen", -] - -[[package]] -name = "stdweb-derive" -version = "0.5.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c87a60a40fccc84bef0652345bbbbbe20a605bf5d0ce81719fc476f5c03b50ef" -dependencies = [ - "proc-macro2", - "quote", - "serde", - "serde_derive", - "syn", -] - -[[package]] -name = "stdweb-internal-macros" -version = "0.2.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "58fa5ff6ad0d98d1ffa8cb115892b6e69d67799f6763e162a1c9db421dc22e11" -dependencies = [ - "base-x", - "proc-macro2", - "quote", - "serde", - "serde_derive", - "serde_json", - "sha1", - "syn", -] - -[[package]] -name = "stdweb-internal-runtime" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "213701ba3370744dcd1a12960caa4843b3d68b4d1c0a5d575e0d65b2ee9d16c0" - [[package]] name = "strsim" version = "0.9.3" @@ -1574,7 +1489,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6db9e6914ab8b1ae1c260a4ae7a49b6c5611b40328a735b21862567685e73255" dependencies = [ "libc", - "wasi 0.10.0+wasi-snapshot-preview1", + "wasi", "winapi 0.3.9", ] @@ -1632,12 +1547,6 @@ dependencies = [ "winapi-util", ] -[[package]] -name = "wasi" -version = "0.9.0+wasi-snapshot-preview1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" - [[package]] name = "wasi" version = "0.10.0+wasi-snapshot-preview1" diff --git a/egui/Cargo.toml b/egui/Cargo.toml index 18f46098..9690154c 100644 --- a/egui/Cargo.toml +++ b/egui/Cargo.toml @@ -20,8 +20,8 @@ include = [ [lib] [dependencies] -ahash = { version = "0.5", features = ["std"], default-features = false } -getrandom = { version = "0.2", features = ["js"] } # Used by `ahash`, workaround for https://github.com/emilk/egui/pull/35 +# Can't upgrade ahash until we can use it within wasmtime (https://github.com/tkaitchuck/aHash/issues/59) +ahash = { version = "0.4", features = ["std"], default-features = false } parking_lot = "0.11" rusttype = "0.9" serde = { version = "1", features = ["derive"], optional = true }