From 3d9c0b12c6b34185e556071ee16401691bfd8e49 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Wed, 24 Jun 2020 17:00:44 +0100 Subject: fix: panic on remote import on wasm Sadly we would need proper async support for that to work --- dhall/Cargo.toml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'dhall/Cargo.toml') diff --git a/dhall/Cargo.toml b/dhall/Cargo.toml index 69b2ac8..9a30d24 100644 --- a/dhall/Cargo.toml +++ b/dhall/Cargo.toml @@ -13,8 +13,8 @@ include = ["src/**/*", "README.md", "build.rs"] [dependencies] annotate-snippets = "0.7.0" -itertools = "0.9.0" hex = "0.4.2" +itertools = "0.9.0" lazy_static = "1.4.0" once_cell = "1.3.1" percent-encoding = "2.1.0" @@ -25,14 +25,11 @@ serde_cbor = "0.9.0" sha2 = "0.9.0" url = "2.1" +# Reqwest needs proper async support to work on wasm. So no remote imports on +# wasm for now. [target.'cfg(not(target_arch = "wasm32"))'.dependencies] reqwest = { version = "0.10", features = ["blocking"] } -[target.'cfg(target_arch = "wasm32")'.dependencies] -# Disable native tls because hyper doesn't build on wasm -reqwest = { version = "0.10", default-features = false } -blocking = "0.4.3" - [dev-dependencies] pretty_assertions = "0.6.1" version-sync = "0.9" -- cgit v1.2.3