results: use standalone repo (#687)

This commit is contained in:
Jacek Sieka 2024-05-30 14:46:57 +02:00 committed by GitHub
parent 50b3d0193c
commit 0e83cfda97
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
11 changed files with 15 additions and 13 deletions

View File

@ -18,7 +18,8 @@ requires "nim >= 1.6.0",
"sqlite3_abi", "sqlite3_abi",
"confutils", "confutils",
"testutils", "testutils",
"unittest2" "unittest2",
"results"
let nimc = getEnv("NIMC", "nim") # Which nim compiler to use let nimc = getEnv("NIMC", "nim") # Which nim compiler to use
let lang = getEnv("NIMLANG", "c") # Which backend (c/cpp/js) let lang = getEnv("NIMLANG", "c") # Which backend (c/cpp/js)

View File

@ -13,7 +13,7 @@
import import
std/[tables, hashes, sets], std/[tables, hashes, sets],
stew/results results
export results export results

View File

@ -12,7 +12,7 @@
import import
std/[strutils, json], std/[strutils, json],
nimcrypto/[bcmode, hmac, rijndael, pbkdf2, sha2, sysrand, utils, keccak, scrypt], nimcrypto/[bcmode, hmac, rijndael, pbkdf2, sha2, sysrand, utils, keccak, scrypt],
stew/results, results,
../keys, ../keys,
./uuid ./uuid

View File

@ -10,7 +10,7 @@
import import
std/[options, os, strutils, times], std/[options, os, strutils, times],
stew/results, nat_traversal/[miniupnpc, natpmp], results, nat_traversal/[miniupnpc, natpmp],
chronicles, json_serialization/std/net, chronos, chronicles, json_serialization/std/net, chronos,
../common/utils, ./utils as netutils ../common/utils, ./utils as netutils

View File

@ -9,7 +9,7 @@
import import
std/[tables, hashes, net], std/[tables, hashes, net],
stew/results, chronos, chronicles results, chronos, chronicles
export net.IpAddress export net.IpAddress

View File

@ -10,7 +10,7 @@
import import
std/[sets, options, net], std/[sets, options, net],
stew/results, chronicles, chronos, results, chronicles, chronos,
../../net/utils, ../../net/utils,
"."/[node, enr, routing_table] "."/[node, enr, routing_table]

View File

@ -83,7 +83,7 @@
import import
std/[tables, sets, options, math, sequtils, algorithm], std/[tables, sets, options, math, sequtils, algorithm],
json_serialization/std/net, json_serialization/std/net,
stew/results, chronicles, chronos, stint, metrics, results, chronicles, chronos, stint, metrics,
".."/../[rlp, keys], ".."/../[rlp, keys],
"."/[messages_encoding, encoding, node, routing_table, enr, random2, sessions, "."/[messages_encoding, encoding, node, routing_table, enr, random2, sessions,
ip_vote, nodes_verification] ip_vote, nodes_verification]

View File

@ -9,7 +9,7 @@
import import
std/[algorithm, times, sequtils, bitops, sets], std/[algorithm, times, sequtils, bitops, sets],
bearssl/rand, stew/results, bearssl/rand, results,
stint, chronicles, metrics, chronos, stint, chronicles, metrics, chronos,
../../net/utils, ../../net/utils,
"."/[node, random2, enr] "."/[node, random2, enr]

View File

@ -13,7 +13,7 @@
{.push raises: [].} {.push raises: [].}
import import
nimcrypto/[bcmode, keccak, rijndael, utils], stew/results nimcrypto/[bcmode, keccak, rijndael, utils], results
from auth import ConnectionSecret from auth import ConnectionSecret
export results export results

View File

@ -300,9 +300,10 @@ proc appendImpl(self: var RlpWriter, data: tuple) {.inline.} =
# score in order to facilitate easier overloading with user types: # score in order to facilitate easier overloading with user types:
template append*[T](w: var RlpWriter; data: T) = template append*[T](w: var RlpWriter; data: T) =
when data is (SomeSignedInt|enum|bool): when data is (SomeSignedInt|enum|bool):
# TODO potentially remove signed integer support - we should never make it when data is SomeSignedInt:
# this far! # TODO potentially remove signed integer support - we should never make it
{.warning: "Signed integers cannot reliably be encoded using RLP".} # this far!
{.warning: "Signed integers cannot reliably be encoded using RLP".}
appendImpl(w, uint64(data)) appendImpl(w, uint64(data))
else: else:
appendImpl(w, data) appendImpl(w, data)

View File

@ -9,7 +9,7 @@
import import
std/[tables, options, sequtils], std/[tables, options, sequtils],
stew/results, results,
nimcrypto/[keccak, hash], nimcrypto/[keccak, hash],
".."/rlp, ".."/rlp,
"."/[trie_defs, nibbles, db] "."/[trie_defs, nibbles, db]