Fixed pkg struct (#5)

This commit is contained in:
Yuriy Glukhov 2018-07-04 15:09:03 +03:00 committed by Mamy Ratsimbazafy
parent ea32db3c8f
commit 840d470eb9
6 changed files with 5 additions and 5 deletions

View File

@ -3,7 +3,7 @@ version = "0.2.0"
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"
srcDir = "src"
skipDirs = @["examples", "tests"]
### Dependencies
requires "nim >= 0.18.1",

View File

@ -36,8 +36,8 @@ else:
## Exported types
const
package_base_dir = currentSourcePath.rsplit(DirSep, 3)[0]
rocksdb_header = package_base_dir & DirSep & "headers" & DirSep & "c.h"
src_base_dir = currentSourcePath.rsplit(DirSep, 1)[0]
rocksdb_header = src_base_dir & DirSep & "headers" & DirSep & "c.h"
type
rocksdb_t* {.importc: "rocksdb_t", header: rocksdb_header.} = object

View File

@ -1,4 +1,4 @@
import rocksdb, os
import ../rocksdb, os
type
MyDB = object

View File

@ -7,7 +7,7 @@
#
# at your option. This file may not be copied, modified, or distributed except according to those terms.
import ../src/rocksdb,
import ../rocksdb,
unittest, cpuinfo
suite "RocksDB C wrapper tests":