mode = ScriptMode.Verbose packageName = "json_serialization" version = "0.1.0" author = "Status Research & Development GmbH" description = "Flexible JSON serialization not relying on run-time type information" license = "Apache License 2.0" skipDirs = @["tests"] requires "nim >= 0.17.0", "serialization", "stew" proc test(args, path: string) = if not dirExists "build": mkDir "build" exec "nim " & getEnv("TEST_LANG", "c") & " " & getEnv("NIMFLAGS") & " " & args & " -d:nimOldCaseObjects " & " -r --hints:off --skipParentCfg --styleCheck:usages --styleCheck:error " & path task test, "Run all tests": test "--threads:off", "tests/test_all" test "--threads:on", "tests/test_all"