forked from status-im/nim-json-rpc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
json_rpc.nimble
26 lines (22 loc) · 864 Bytes
/
json_rpc.nimble
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
packageName = "json_rpc"
version = "0.0.2"
author = "Status Research & Development GmbH"
description = "Ethereum remote procedure calls"
license = "Apache License 2.0"
skipDirs = @["tests"]
### Dependencies
requires "nim >= 0.17.3",
"nimcrypto",
"stint",
"chronos",
"httputils",
"chronicles",
"https://github.com/status-im/news#status",
"chronicles",
"json_serialization"
proc buildBinary(name: string, srcDir = "./", params = "", cmdParams = "", lang = "c") =
if not dirExists "build":
mkDir "build"
exec "nim " & lang & " --out:./build/" & name & " " & params & " " & srcDir & name & ".nim" & " " & cmdParams
task test, "run tests":
buildBinary "all", "tests/", "-r -f --hints:off --debuginfo --path:'.' --threads:on -d:chronicles_log_level=ERROR"