2021-06-27 13:35:36 +07:00
|
|
|
## nim-websock
|
2021-06-20 11:27:50 +07:00
|
|
|
## 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.
|
|
|
|
|
2021-06-27 13:35:36 +07:00
|
|
|
packageName = "websock"
|
2021-06-23 15:47:31 +07:00
|
|
|
version = "0.1.0"
|
|
|
|
author = "Status Research & Development GmbH"
|
2020-12-01 18:13:59 +05:30
|
|
|
description = "WS protocol implementation"
|
2021-06-23 15:47:31 +07:00
|
|
|
license = "MIT"
|
|
|
|
skipDirs = @["examples", "tests"]
|
2020-12-01 18:13:59 +05:30
|
|
|
|
2021-06-27 13:35:36 +07:00
|
|
|
requires "nim >= 1.2.0" # nimble will fail to install nim-websock if we are using 1.2.6 here
|
2021-04-05 12:22:10 -06:00
|
|
|
requires "chronos >= 3.0.0"
|
2020-12-08 01:17:45 +05:30
|
|
|
requires "httputils >= 0.2.0"
|
2021-06-28 15:05:28 +02:00
|
|
|
requires "chronicles#ba2817f1"
|
2021-03-11 09:04:14 +05:30
|
|
|
requires "stew >= 0.1.0"
|
|
|
|
requires "asynctest >= 0.2.0 & < 0.3.0"
|
|
|
|
requires "nimcrypto"
|
2021-04-14 03:35:58 +05:30
|
|
|
requires "bearssl"
|
2021-06-20 10:19:08 +07:00
|
|
|
requires "https://github.com/status-im/nim-zlib"
|
2020-12-01 18:13:59 +05:30
|
|
|
|
2021-03-18 09:30:21 -06:00
|
|
|
task test, "run tests":
|
2021-06-25 12:46:57 +07: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-07-28 11:25:08 +01:00
|
|
|
exec "nim --hints:off c -r --opt:speed -d:debug --verbosity:0 --hints:off -d:chronicles_log_level=INFO ./tests/testcommon.nim"
|
2021-05-31 20:39:14 -06:00
|
|
|
rmFile "./tests/testcommon"
|
|
|
|
|
2021-07-28 11:25:08 +01:00
|
|
|
exec "nim --hints:off c -r --opt:speed -d:debug --verbosity:0 --hints:off -d:chronicles_log_level=INFO ./tests/testwebsockets.nim"
|
2021-05-31 20:39:14 -06:00
|
|
|
rmFile "./tests/testwebsockets"
|
|
|
|
|
2021-07-28 11:25:08 +01: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-05-31 20:39:14 -06:00
|
|
|
rmFile "./tests/testwebsockets"
|
2021-06-14 17:20:28 -06:00
|
|
|
|
2021-07-28 11:25:08 +01: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"
|
2021-06-14 17:20:28 -06:00
|
|
|
rmFile "./tests/testwebsockets"
|
|
|
|
|
2021-07-28 11:25:08 +01:00
|
|
|
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"
|
2021-06-14 17:20:28 -06:00
|
|
|
rmFile "./tests/testwebsockets"
|