rlp_inspect: simple CLI tool for debugging RLP problems

This commit is contained in:
Zahary Karadjov 2018-09-12 18:21:32 +03:00
parent 82c064946c
commit 44e10db59a
2 changed files with 9 additions and 1 deletions

7
bin/rlp_inspect.nim Normal file
View File

@ -0,0 +1,7 @@
import os, ../rlp
if paramCount() > 0:
echo rlpFromHex(paramStr(1)).inspect
else:
echo "Please provide an hex-encoded RLP string as an input"

View File

@ -5,7 +5,8 @@ version = "1.0.1"
author = "Status Research & Development GmbH"
description = "RLP serialization library for Nim"
license = "Apache License 2.0"
skipDirs = @["tests"]
skipDirs = @["bin", "tests"]
bin = @["bin/rlp_inspect"]
requires "nim >= 0.17.0",
"ranges"