nim-libp2p/libp2p.nimble

25 lines
682 B
Plaintext
Raw Normal View History

2018-11-19 02:52:11 +00:00
mode = ScriptMode.Verbose
2018-11-19 04:03:23 +00:00
packageName = "libp2p"
version = "0.0.2"
2018-11-19 02:52:11 +00:00
author = "Status Research & Development GmbH"
description = "LibP2P implementation"
license = "MIT"
2018-11-27 12:20:05 +00:00
skipDirs = @["tests", "examples", "Nim"]
2018-11-19 02:52:11 +00:00
2019-10-23 10:27:51 +00:00
requires "nim > 0.19.4",
"secp256k1",
2019-09-13 19:11:41 +00:00
"nimcrypto >= 0.4.1",
2020-01-29 15:42:42 +00:00
"chronos >= 2.3.5",
2019-11-06 11:59:03 +00:00
"bearssl >= 0.1.3",
2019-12-13 09:42:47 +00:00
"chronicles >= 0.7.0",
"stew"
2018-11-19 02:52:11 +00:00
2019-03-25 21:45:34 +00:00
proc runTest(filename: string) =
exec "nim -d:chronicles_log_level=trace -d:chronicles_colors=off c -r tests/" & filename
2019-08-22 05:49:27 +00:00
# rmFile "tests/" & filename
2018-11-19 21:03:50 +00:00
task test, "Runs the test suite":
2019-03-25 21:45:34 +00:00
runTest "testnative"
runTest "testdaemon"
PubSub (Gossip & Flood) Implementation (#36) This adds gossipsub and floodsub, as well as basic interop testing with the go libp2p daemon. * add close event * wip: gossipsub * splitting rpc message * making message handling more consistent * initial gossipsub implementation * feat: nim 1.0 cleanup * wip: gossipsub protobuf * adding encoding/decoding of gossipsub messages * add disconnect handler * add proper gossipsub msg handling * misc: cleanup for nim 1.0 * splitting floodsub and gossipsub tests * feat: add mesh rebalansing * test pubsub * add mesh rebalansing tests * testing mesh maintenance * finishing mcache implementatin * wip: commenting out broken tests * wip: don't run heartbeat for now * switchout debug for trace logging * testing gossip peer selection algorithm * test stream piping * more work around message amplification * get the peerid from message * use timed cache as backing store * allow setting timeout in constructor * several changes to improve performance * more through testing of msg amplification * prevent gc issues * allow piping to self and prevent deadlocks * improove floodsub * allow running hook on cache eviction * prevent race conditions * prevent race conditions and improove tests * use hashes as cache keys * removing useless file * don't create a new seq * re-enable pubsub tests * fix imports * reduce number of runs to speed up tests * break out control message processing * normalize sleeps between steps * implement proper transport filtering * initial interop testing * clean up floodsub publish logic * allow dialing without a protocol * adding multiple reads/writes * use protobuf varint in mplex * don't loose conn's peerInfo * initial interop pubsub tests * don't duplicate connections/peers * bring back interop tests * wip: interop * re-enable interop and daemon tests * add multiple read write tests from handlers * don't cleanup channel prematurely * use correct channel to send/receive msgs * adjust tests with latest changes * include interop tests * remove temp logging output * fix ci * use correct public key serialization * additional tests for pubsub interop
2019-12-06 02:16:18 +00:00
runTest "testinterop"