I’m trying to build sn_api using musl and have a problem with openssl (which I thought was removed once before but seems to be back again, maybe I’m thinking of sn_node?).
My compile instruction:
sn_api (f2589e0) $ cargo build --release --target x86_64-unknown-linux-musl
...
error: failed to run custom build command for `openssl-sys v0.9.60`
... lots of error text ...
The openssl dependency comes from the reqwest crate
sn_api (f2589e0) $ cargo tree -i openssl
openssl v0.10.32
└── native-tls v0.2.6
├── hyper-tls v0.3.2
│ └── reqwest v0.9.24
│ └── sn_cli v0.17.0 (/home/ian/code/maidsafe/sn_api/sn_cli)
└── reqwest v0.9.24 (*)
reqwest says it depends on openssl (but only for linux) in their readme:
Reqwest uses rust-native-tls, which will use the operating system TLS framework if available, meaning Windows and macOS. On Linux, it will use OpenSSL 1.1.
Any thoughts about the best way to resolve this? Should I use gcc instead of musl?