More exports cleanup (#522)

* annotate `SecureProtocol.Secio` as deprecated

* dont export varint

* add `errors` to exports - convenient error utils
This commit is contained in:
Dmitriy Ryajov 2021-02-09 15:41:49 -06:00 committed by GitHub
parent fff54fa23c
commit f4145ebbfa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,7 @@ import
transports/transport,
transports/tcptransport,
protocols/secure/noise,
varint,
errors,
switch,
peerid,
peerinfo,
@ -27,7 +27,7 @@ import
import bearssl
export
minprotobuf, varint,switch, peerid, peerinfo,
minprotobuf, switch, peerid, peerinfo,
connection, multiaddress, crypto, lpstream,
bufferstream, bearssl, muxer, mplex, transport,
tcptransport, noise
tcptransport, noise, errors

View File

@ -9,7 +9,7 @@ import connmanager
type
SecureProtocol* {.pure.} = enum
Noise,
Secio # deprecated
Secio {.deprecated.}
proc newStandardSwitch*(privKey = none(PrivateKey),
address = MultiAddress.init("/ip4/127.0.0.1/tcp/0").tryGet(),