mirror of
https://github.com/logos-messaging/libchat.git
synced 2026-04-02 01:23:11 +00:00
Use correct build hook
This commit is contained in:
parent
803a11ce27
commit
a0ee07ccc4
@ -13,9 +13,14 @@ bin = @["libchat"]
|
|||||||
requires "nim >= 2.2.4"
|
requires "nim >= 2.2.4"
|
||||||
requires "results"
|
requires "results"
|
||||||
|
|
||||||
# Build Rust library before compiling Nim
|
proc buildRust() =
|
||||||
before build:
|
|
||||||
exec "cargo build --release --manifest-path ../Cargo.toml"
|
exec "cargo build --release --manifest-path ../Cargo.toml"
|
||||||
|
|
||||||
|
|
||||||
|
# Build Rust library before compiling Nim
|
||||||
|
before build:
|
||||||
|
buildRust()
|
||||||
|
|
||||||
task pingpong, "Run pingpong example":
|
task pingpong, "Run pingpong example":
|
||||||
|
buildRust()
|
||||||
exec "nim c -r --path:src --passL:../target/release/liblibchat.a examples/pingpong.nim"
|
exec "nim c -r --path:src --passL:../target/release/liblibchat.a examples/pingpong.nim"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user