mirror of
https://github.com/logos-messaging/libchat.git
synced 2026-04-01 17:13:13 +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 "results"
|
||||
|
||||
# Build Rust library before compiling Nim
|
||||
before build:
|
||||
proc buildRust() =
|
||||
exec "cargo build --release --manifest-path ../Cargo.toml"
|
||||
|
||||
|
||||
# Build Rust library before compiling Nim
|
||||
before build:
|
||||
buildRust()
|
||||
|
||||
task pingpong, "Run pingpong example":
|
||||
buildRust()
|
||||
exec "nim c -r --path:src --passL:../target/release/liblibchat.a examples/pingpong.nim"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user