mirror of
https://github.com/codex-storage/nim-libp2p.git
synced 2025-01-10 02:55:45 +00:00
5701d937c8
* Fix signed varints. Add tests for signed varints. Remove some casts to allow usage at compile time. * Fix vsizeof() on 32bit platforms. * Add `hint` and `zint` types for proper signed integer encoding. * Fix varint related bugs. * Update requirements. * Fix interop tests because of fixed readLine. * Add putVarint, getVarint and tests.
25 lines
650 B
Nim
25 lines
650 B
Nim
mode = ScriptMode.Verbose
|
|
|
|
packageName = "libp2p"
|
|
version = "0.0.2"
|
|
author = "Status Research & Development GmbH"
|
|
description = "LibP2P implementation"
|
|
license = "MIT"
|
|
skipDirs = @["tests", "examples", "Nim"]
|
|
|
|
requires "nim > 0.19.4",
|
|
"secp256k1",
|
|
"nimcrypto >= 0.4.1",
|
|
"chronos >= 2.3.8",
|
|
"bearssl >= 0.1.4",
|
|
"chronicles >= 0.7.0",
|
|
"stew"
|
|
|
|
proc runTest(filename: string) =
|
|
exec "nim --opt:speed -d:release c -r tests/" & filename
|
|
# rmFile "tests/" & filename
|
|
|
|
task test, "Runs the test suite":
|
|
runTest "testnative"
|
|
runTest "testdaemon"
|
|
runTest "testinterop" |