diff --git a/bin/rlp_inspect.nim b/bin/rlp_inspect.nim new file mode 100644 index 0000000..9959815 --- /dev/null +++ b/bin/rlp_inspect.nim @@ -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" + diff --git a/rlp.nimble b/rlp.nimble index 3986f36..a38e689 100644 --- a/rlp.nimble +++ b/rlp.nimble @@ -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"