Skip to content

Commit

Permalink
Hide vss-client dependency behind cfg flag
Browse files Browse the repository at this point in the history
Recently, we introduced first steps towards VSS support. Unfortunately,
`vss-client` has a build dependency on blocking `reqwest` which defaults
to use `native-tls`, pulling in `openssl-sys`, which in turn fails for
the Android targets.

Here, we preliminarily hide the `vss-client` dependency behind the
`cfg(vss)` flag to fix our Android builds.
  • Loading branch information
tnull committed Nov 24, 2023
1 parent 67b079a commit 2d0c012
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ tokio = { version = "1", default-features = false, features = [ "rt-multi-thread
esplora-client = { version = "0.4", default-features = false }
libc = "0.2"
uniffi = { version = "0.23.0", features = ["build"], optional = true }

[target.'cfg(vss)'.dependencies]
vss-client = "0.1"

[target.'cfg(windows)'.dependencies]
Expand Down

0 comments on commit 2d0c012

Please sign in to comment.