mirror of
https://github.com/eycorsican/leaf.git
synced 2026-12-05 16:02:32 +00:00
* Added "api" config to JSON format * Added "api-interface" and "api-port" options to Conf format * Added "--auto-reload" flag to the command line program * Added "--test" flag to the command line program * Added FFIs leaf_run(), leaf_reload(), leaf_shutdown(), leaf_test_config() * Removed FFI run_leaf() * Added Web APIs: * POST /api/v1/runtime/reload * POST /api/v1/runtime/shutdown
30 lines
946 B
Makefile
30 lines
946 B
Makefile
ios:
|
|
cargo lipo --release --targets aarch64-apple-ios --manifest-path leaf-ffi/Cargo.toml --no-default-features --features "default-openssl"
|
|
cbindgen --config leaf-ffi/cbindgen.toml leaf-ffi/src/lib.rs > target/universal/release/leaf.h
|
|
|
|
ios-dev:
|
|
cargo lipo --targets aarch64-apple-ios --manifest-path leaf-ffi/Cargo.toml --no-default-features --features "default-openssl"
|
|
cbindgen --config leaf-ffi/cbindgen.toml leaf-ffi/src/lib.rs > target/universal/debug/leaf.h
|
|
|
|
lib:
|
|
cargo build -p leaf-ffi --release
|
|
cbindgen --config leaf-ffi/cbindgen.toml leaf-ffi/src/lib.rs > target/release/leaf.h
|
|
|
|
lib-dev:
|
|
cargo build -p leaf-ffi
|
|
cbindgen --config leaf-ffi/cbindgen.toml leaf-ffi/src/lib.rs > target/debug/leaf.h
|
|
|
|
local:
|
|
cargo build -p leaf-bin --release
|
|
|
|
local-dev:
|
|
cargo build -p leaf-bin
|
|
|
|
test:
|
|
cargo test -p leaf -- --nocapture
|
|
|
|
# Force a re-generation of protobuf files.
|
|
proto-gen:
|
|
touch leaf/build.rs
|
|
PROTO_GEN=1 cargo build -p leaf
|