mirror of
https://github.com/status-im/nim-rocksdb.git
synced 2025-02-19 18:38:15 +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"
|
author = "Status Research & Development GmbH"
|
||||||
description = "A wrapper for Facebook's RocksDB, an embeddable, persistent key-value store for fast storage"
|
description = "A wrapper for Facebook's RocksDB, an embeddable, persistent key-value store for fast storage"
|
||||||
license = "Apache License 2.0 or GPLv2"
|
license = "Apache License 2.0 or GPLv2"
|
||||||
srcDir = "src"
|
skipDirs = @["examples", "tests"]
|
||||||
|
|
||||||
### Dependencies
|
### Dependencies
|
||||||
requires "nim >= 0.18.1",
|
requires "nim >= 0.18.1",
|
||||||
|
@ -36,8 +36,8 @@ else:
|
|||||||
## Exported types
|
## Exported types
|
||||||
|
|
||||||
const
|
const
|
||||||
package_base_dir = currentSourcePath.rsplit(DirSep, 3)[0]
|
src_base_dir = currentSourcePath.rsplit(DirSep, 1)[0]
|
||||||
rocksdb_header = package_base_dir & DirSep & "headers" & DirSep & "c.h"
|
rocksdb_header = src_base_dir & DirSep & "headers" & DirSep & "c.h"
|
||||||
|
|
||||||
type
|
type
|
||||||
rocksdb_t* {.importc: "rocksdb_t", header: rocksdb_header.} = object
|
rocksdb_t* {.importc: "rocksdb_t", header: rocksdb_header.} = object
|
@ -1,4 +1,4 @@
|
|||||||
import rocksdb, os
|
import ../rocksdb, os
|
||||||
|
|
||||||
type
|
type
|
||||||
MyDB = object
|
MyDB = object
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
#
|
#
|
||||||
# at your option. This file may not be copied, modified, or distributed except according to those terms.
|
# at your option. This file may not be copied, modified, or distributed except according to those terms.
|
||||||
|
|
||||||
import ../src/rocksdb,
|
import ../rocksdb,
|
||||||
unittest, cpuinfo
|
unittest, cpuinfo
|
||||||
|
|
||||||
suite "RocksDB C wrapper tests":
|
suite "RocksDB C wrapper tests":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user