mirror of
https://github.com/status-im/nim-rocksdb.git
synced 2025-02-16 17:07:40 +00:00
Fixed pkg struct (#5)
This commit is contained in:
parent
ea32db3c8f
commit
840d470eb9
@ -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",
|
||||
|
@ -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
|
@ -1,4 +1,4 @@
|
||||
import rocksdb, os
|
||||
import ../rocksdb, os
|
||||
|
||||
type
|
||||
MyDB = object
|
||||
|
@ -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":
|
||||
|
Loading…
x
Reference in New Issue
Block a user