Files
mix/mix.nimble
2025-08-05 10:27:52 -04:00

28 lines
669 B
Nim

version = "0.1.0"
author = "Akshaya"
description = "A custom Mix Protocol"
license = "MIT"
skipDirs = @["tests", "examples"]
# Dependencies
requires "stew >= 0.3.0"
requires "chronos >= 4.0.3"
requires "libp2p >= 1.12.0"
requires "nim >= 1.6.0"
requires "nimcrypto >= 0.6.0"
requires "serialization >= 0.2.2"
# Set the source directory
const TEST_DIRECTORY = "tests"
import strformat
proc runTest(filename: string, shouldRemoveTestBinary: bool = true) =
var execStr = "nim c -r"
exec fmt"{execStr} {TEST_DIRECTORY}/{filename}"
if shouldRemoveTestBinary:
rmFile fmt"{TEST_DIRECTORY}/{filename.toExe()}"
task test, "Run the test suite":
runTest("tests")