nim-rocksdb/rocksdb.nimble

27 lines
696 B
Plaintext
Raw Normal View History

2018-01-27 17:18:38 +01:00
packageName = "rocksdb"
version = "0.2.0"
2018-01-27 17:18:38 +01:00
author = "Status Research & Development GmbH"
description = "A wrapper for Facebook's RocksDB, an embeddable, persistent key-value store for fast storage"
license = "Apache License 2.0 or GPLv2"
2018-07-04 15:09:03 +03:00
skipDirs = @["examples", "tests"]
2018-01-27 17:18:38 +01:00
### Dependencies
requires "nim >= 0.18.1",
"ranges",
"tempfile"
2018-02-04 00:55:41 +01:00
proc test(name: string, lang: string = "c") =
if not dirExists "build":
mkDir "build"
2018-02-04 00:55:41 +01:00
if not dirExists "nimcache":
mkDir "nimcache"
--run
--nimcache: "nimcache"
switch("out", ("./build/" & name))
--threads: on
2018-02-04 00:55:41 +01:00
setCommand lang, "tests/" & name & ".nim"
task test, "Run tests":
test "all"