diff options
author | Nadrieril | 2020-10-12 16:02:50 +0100 |
---|---|---|
committer | GitHub | 2020-10-12 16:02:50 +0100 |
commit | 64cfd332f4617cfd760d5cae63f3bb6cd725595f (patch) | |
tree | 6793f5a549d1f56b36cd2c719a07626e4db5672c /dhall/Cargo.toml | |
parent | 3f40ab4625b8ea3e0eeb894d95557f5790c02776 (diff) | |
parent | 11ff1d502d5706b92e09a4051f7ffc708859409c (diff) |
Merge pull request #178 from basile-henry/optional-reqwest
Make reqwest an optional dependency
Diffstat (limited to '')
-rw-r--r-- | dhall/Cargo.toml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/dhall/Cargo.toml b/dhall/Cargo.toml index 6c2c630..72fc13c 100644 --- a/dhall/Cargo.toml +++ b/dhall/Cargo.toml @@ -11,6 +11,9 @@ edition = "2018" build = "build.rs" include = ["src/**/*", "README.md", "build.rs"] +[features] +default = [ "reqwest" ] + [[test]] name = "spec" harness = false @@ -33,7 +36,7 @@ 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"] } +reqwest = { version = "0.10", features = ["blocking"], optional = true } [dev-dependencies] anyhow = "1.0.28" |