2021-06-20 04:27:50 +00:00
|
|
|
## nim-ws
|
|
|
|
## Copyright (c) 2021 Status Research & Development GmbH
|
|
|
|
## Licensed under either of
|
|
|
|
## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE))
|
|
|
|
## * MIT license ([LICENSE-MIT](LICENSE-MIT))
|
|
|
|
## at your option.
|
|
|
|
## This file may not be copied, modified, or distributed except according to
|
|
|
|
## those terms.
|
|
|
|
|
2020-12-01 12:43:59 +00:00
|
|
|
packageName = "ws"
|
2021-06-23 08:47:31 +00:00
|
|
|
version = "0.1.0"
|
|
|
|
author = "Status Research & Development GmbH"
|
2020-12-01 12:43:59 +00:00
|
|
|
description = "WS protocol implementation"
|
2021-06-23 08:47:31 +00:00
|
|
|
license = "MIT"
|
|
|
|
skipDirs = @["examples", "tests"]
|
2020-12-01 12:43:59 +00:00
|
|
|
|
2021-06-23 08:47:31 +00:00
|
|
|
requires "nim >= 1.2.0" # nimble will fail to install nim-ws if we are using 1.2.6 here
|
2021-04-05 18:22:10 +00:00
|
|
|
requires "chronos >= 3.0.0"
|
2020-12-07 19:47:45 +00:00
|
|
|
requires "httputils >= 0.2.0"
|
2021-06-28 13:05:28 +00:00
|
|
|
requires "chronicles#ba2817f1"
|
2021-03-11 03:34:14 +00:00
|
|
|
requires "stew >= 0.1.0"
|
|
|
|
requires "asynctest >= 0.2.0 & < 0.3.0"
|
|
|
|
requires "nimcrypto"
|
2021-04-13 22:05:58 +00:00
|
|
|
requires "bearssl"
|
2021-06-20 03:19:08 +00:00
|
|
|
requires "https://github.com/status-im/nim-zlib"
|
2020-12-01 12:43:59 +00:00
|
|
|
|
2021-03-18 15:30:21 +00:00
|
|
|
task test, "run tests":
|
2021-06-25 05:46:57 +00:00
|
|
|
# dont't need to run it, only want to test if it is compileable
|
|
|
|
exec "nim c -c --verbosity:0 --hints:off -d:chronicles_log_level=TRACE -d:chronicles_sinks:json ./tests/testcommon"
|
|
|
|
|
2021-06-12 00:40:56 +00:00
|
|
|
exec "nim --hints:off c -r --opt:speed -d:debug --verbosity:0 --hints:off -d:chronicles_log_level=info ./tests/testcommon.nim"
|
2021-06-01 02:39:14 +00:00
|
|
|
rmFile "./tests/testcommon"
|
|
|
|
|
2021-06-12 00:40:56 +00:00
|
|
|
exec "nim --hints:off c -r --opt:speed -d:debug --verbosity:0 --hints:off -d:chronicles_log_level=info ./tests/testwebsockets.nim"
|
2021-06-01 02:39:14 +00:00
|
|
|
rmFile "./tests/testwebsockets"
|
|
|
|
|
2021-06-12 00:40:56 +00:00
|
|
|
exec "nim --hints:off -d:secure c -r --opt:speed -d:debug --verbosity:0 --hints:off -d:chronicles_log_level=info ./tests/testwebsockets.nim"
|
2021-06-01 02:39:14 +00:00
|
|
|
rmFile "./tests/testwebsockets"
|
2021-06-14 23:20:28 +00:00
|
|
|
|
|
|
|
exec "nim --hints:off -d:accepts c -r --opt:speed -d:debug --verbosity:0 --hints:off -d:chronicles_log_level=info ./tests/testwebsockets.nim"
|
|
|
|
rmFile "./tests/testwebsockets"
|
|
|
|
|
|
|
|
exec "nim --hints:off -d:secure -d:accepts c -r --opt:speed -d:debug --verbosity:0 --hints:off -d:chronicles_log_level=info ./tests/testwebsockets.nim"
|
|
|
|
rmFile "./tests/testwebsockets"
|