Use vendor and submodules

This commit is contained in:
Oskar Thoren 2020-04-20 13:47:15 +08:00
parent 0e494b315d
commit 799f65e287
No known key found for this signature in database
GPG Key ID: B2ECCFD3BC2EF77E
9 changed files with 35 additions and 1 deletions

15
.gitmodules vendored Normal file
View File

@ -0,0 +1,15 @@
[submodule "hello_gossipsub/vendor/nimbus"]
path = hello_gossipsub/vendor/nimbus
url = https://github.com/status-im/nimbus/
[submodule "hello_gossipsub/vendor/nim-eth"]
path = hello_gossipsub/vendor/nim-eth
url = https://github.com/status-im/nim-eth
[submodule "hello_gossipsub/vendor/nim-secp256k1"]
path = hello_gossipsub/vendor/nim-secp256k1
url = https://github.com/status-im/nim-secp256k1
[submodule "hello_gossipsub/vendor/nim-libp2p"]
path = hello_gossipsub/vendor/nim-libp2p
url = https://github.com/status-im/nim-libp2p
[submodule "hello_gossipsub/vendor/nim-stew"]
path = hello_gossipsub/vendor/nim-stew
url = https://github.com/status-im/nim-stew

View File

@ -10,3 +10,11 @@ Let's start small:
## Running
`nim c -r src/hello_gossipsub.nim`
## What I want to do
Use Waku stuff from Nimbus here,
Get quicksim working
Then try to do similar with libp2p gossipsub

View File

@ -12,4 +12,6 @@ bin = @["hello_gossipsub"]
# Dependencies
requires "nim >= 1.2.0"
requires "libp2p"
#requires "libp2p"
#requires "nimbus"
#requires "nim-eth"

View File

@ -1,5 +1,8 @@
#import libp2p/protocols/pubsub/floodsub
#import unittest, sequtils
#import nimbus/rpc/waku
## example.nim
import chronos
import libp2p/standard_setup
import libp2p/[switch,
@ -7,6 +10,7 @@ import libp2p/[switch,
protocols/pubsub/pubsub,
protocols/pubsub/rpc/messages,
protocols/pubsub/rpc/message]
import ../vendor/nimbus/waku/wakunode
# From tests/pubsub/utils.nim
proc generateNodes*(num: Natural, gossip: bool = false): seq[Switch] =

1
hello_gossipsub/vendor/nim-eth vendored Submodule

@ -0,0 +1 @@
Subproject commit 1646d78d833b386ff0d554e42ede83595871249f

1
hello_gossipsub/vendor/nim-libp2p vendored Submodule

@ -0,0 +1 @@
Subproject commit 027e8227ea7b1c019a37c10f6885c89ccdec4f74

@ -0,0 +1 @@
Subproject commit e8fa92a0c6217103eecce2a9e6f274c7eedac13b

1
hello_gossipsub/vendor/nim-stew vendored Submodule

@ -0,0 +1 @@
Subproject commit ff755bbf75d0d3f387b9f352b241d98eb3372323

1
hello_gossipsub/vendor/nimbus vendored Submodule

@ -0,0 +1 @@
Subproject commit 73e9199ebfbf7262c8d7d3f0e5d96cf143e9eb41