mirror of
https://github.com/eycorsican/leaf.git
synced 2026-12-05 08:01:26 +00:00
* Added OpenSSL AEAD support * Added OpenSSL TLS support * Added mips/mipsel support OpenSSL features can be conditinally compiled, targets not supported by ring should use OpenSSL, e.g. mips/mipsel, while other targets should use ring and rustls for crypto and TLS for better performance. Crypto functions from Shadowsocks and VMess are unified in common/crypto.
17 lines
470 B
Makefile
17 lines
470 B
Makefile
ios:
|
|
cargo lipo -p leaf-mobile --release --targets aarch64-apple-ios && cbindgen leaf-mobile/src/lib.rs -l c > target/universal/release/leaf.h
|
|
|
|
ios-dev:
|
|
cargo lipo -p leaf-mobile --targets aarch64-apple-ios && cbindgen leaf-mobile/src/lib.rs -l c > target/universal/debug/leaf.h
|
|
|
|
local:
|
|
cargo build -p leaf-bin --release
|
|
|
|
local-dev:
|
|
cargo build -p leaf-bin
|
|
|
|
# Force a re-generation of protobuf files.
|
|
proto-gen:
|
|
touch leaf/build.rs
|
|
PROTO_GEN=1 cargo build -p leaf
|