exein-io / pulsar

A modular and blazing fast runtime security tool for the IoT, powered by eBPF.
https://pulsar.sh
Other
888 stars 51 forks source link

build: Prefer rustls over OpenSSL for static builds #278

Closed vadorovsky closed 4 months ago

vadorovsky commented 4 months ago

Introduce the new static feature which not only makes all dependencies vendored, but also prefers rustls over OpenSSL. The new underlying features, allowing the choice of TLS implementation, are tls-openssl and tls-rustls.

OpenSSL is still the default choice when not providing any features.

Since features in Cargo are additive, the static feature works properly only with --no-default-features. Therefore, the recommended way of performing the static builds is:

cross build --target=<triple>-musl --no-default-features --features static

Fixes #281