Cargo.toml: fix macOS link issues

This commit is contained in:
hinto.janai 2023-06-04 09:52:04 -04:00
parent 9efe1e0d1a
commit dec25895ff
No known key found for this signature in database
GPG key ID: D47CE05FA175A499
2 changed files with 8 additions and 1 deletions

View file

@ -88,6 +88,13 @@ eframe = { version = "0.19.0", default-features = false, features = ["glow"] }
#
# https://gitlab.torproject.org/tpo/core/arti/-/issues/715
tls-api-openssl = "0.9.0"
# `arti-client` with `static` doesn't actually
# statically link OpenSSL on macOS, both x64 + ARM.
# Should probably file a bug report.
openssl = { version = "0.10", features = ["vendored"] }
# We don't even use `xz` in `flate2` but this gets dynamically
# linked as well which causes problems, so statically link it.
lzma-sys = { version = "0.1.20", features = ["static"] }
# Windows/Linux Tor
[target.'cfg(not(target_os = "macos"))'.dependencies]

View file

@ -638,7 +638,7 @@ Due to an issue with some [TLS code](https://gitlab.torproject.org/tpo/core/arti
These are statically linked into Gupax, so you'll need to have them on your system:
```bash
brew install pkg-config openssl
brew install pkg-config openssl xz
```
If you want the binary to have an icon, you must use [`cargo-bundle`](https://github.com/burtonageo/cargo-bundle):