mirror of
https://github.com/status-im/nim-libp2p.git
synced 2025-01-21 02:09:19 +00:00
moving exports around some more
This commit is contained in:
parent
d79a9476a0
commit
a9a5d2ec33
@ -1,14 +1,18 @@
|
||||
## Nim-LibP2P
|
||||
## Copyright (c) 2020 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.
|
||||
|
||||
when not(compileOption("threads")):
|
||||
{.fatal: "Please, compile this program with the --threads:on option!".}
|
||||
|
||||
import tables, options, sequtils, algorithm, strformat, os, strutils
|
||||
import chronos
|
||||
import ../libp2p/[core,
|
||||
protocols/pubsub/floodsub,
|
||||
protocols/pubsub/gossipsub,
|
||||
protocols/secure/secio,
|
||||
muxers/mplex/mplex,
|
||||
transports/tcptransport]
|
||||
import ../libp2p/core
|
||||
|
||||
const ChatCodec = "/nim-libp2p/chat/1.0.0"
|
||||
const DefaultAddr = "/ip4/127.0.0.1/tcp/55505"
|
||||
|
@ -1,21 +1,45 @@
|
||||
## Nim-LibP2P
|
||||
## Copyright (c) 2020 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.
|
||||
|
||||
## Default libp2p exports
|
||||
import switch,
|
||||
protocols/protocol,
|
||||
protocols/secure/secure,
|
||||
protocols/secure/plaintext,
|
||||
protocols/secure/secio,
|
||||
protocols/secure/noise,
|
||||
protocols/identify,
|
||||
protocols/pubsub/pubsub,
|
||||
protocols/pubsub/floodsub,
|
||||
protocols/pubsub/gossipsub,
|
||||
crypto/crypto,
|
||||
connection,
|
||||
transports/transport,
|
||||
transports/tcptransport,
|
||||
muxers/muxer,
|
||||
muxers/mplex/mplex,
|
||||
multistream,
|
||||
multiaddress,
|
||||
peerinfo,
|
||||
peer
|
||||
|
||||
export switch,
|
||||
secio,
|
||||
noise,
|
||||
muxer,
|
||||
mplex,
|
||||
pubsub,
|
||||
floodsub,
|
||||
gossipsub,
|
||||
connection,
|
||||
transport,
|
||||
tcptransport,
|
||||
multiaddress,
|
||||
multistream,
|
||||
crypto,
|
||||
@ -24,6 +48,4 @@ export switch,
|
||||
secure,
|
||||
plaintext,
|
||||
peerinfo,
|
||||
pubsub,
|
||||
muxer,
|
||||
peer
|
||||
|
@ -1,9 +1,15 @@
|
||||
## Nim-LibP2P
|
||||
## Copyright (c) 2020 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.
|
||||
|
||||
import
|
||||
options, tables
|
||||
import core,
|
||||
muxers/mplex/mplex,
|
||||
transports/tcptransport,
|
||||
protocols/[pubsub/floodsub, pubsub/gossipsub, secure/secio]
|
||||
import core
|
||||
|
||||
export core
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user