2021-06-27 06:35:36 +00:00
|
|
|
## nim-websock
|
2021-06-20 04:27:50 +00: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 06:35:36 +00:00
|
|
|
packageName = "websock"
|
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-27 06:35:36 +00:00
|
|
|
requires "nim >= 1.2.0" # nimble will fail to install nim-websock 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-12-16 13:26:49 +00:00
|
|
|
requires "chronicles >= 0.10.2"
|
2021-03-11 03:34:14 +00:00
|
|
|
requires "stew >= 0.1.0"
|
2021-09-21 07:35:12 +00:00
|
|
|
requires "asynctest >= 0.3.0 & < 0.4.0"
|
2021-03-11 03:34:14 +00:00
|
|
|
requires "nimcrypto"
|
2021-04-13 22:05:58 +00:00
|
|
|
requires "bearssl"
|
2021-11-22 17:15:26 +00:00
|
|
|
requires "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
|
2021-12-27 10:27:21 +00:00
|
|
|
exec "nim c -c --verbosity:0 --hints:off -d:chronicles_log_level=TRACE -d:chronicles_sinks:json --styleCheck:usages --styleCheck:error ./tests/testcommon"
|
2021-06-25 05:46:57 +00:00
|
|
|
|
2021-07-28 10:25:08 +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-07-28 10:25:08 +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-07-28 10:25:08 +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
|
|
|
|
2021-07-28 10:25:08 +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"
|
2021-06-14 23:20:28 +00:00
|
|
|
rmFile "./tests/testwebsockets"
|
|
|
|
|
2021-07-28 10:25:08 +00: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 23:20:28 +00:00
|
|
|
rmFile "./tests/testwebsockets"
|