Skip to content

Commit 809c1dc

Browse files
fredbjersre-bot
authored andcommitted
bindgen: pre-generate bindings (#402)
1 parent 8d06b36 commit 809c1dc

File tree

5 files changed

+4335
-0
lines changed

5 files changed

+4335
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ $ git submodule update --init --recursive # if you just cloned the repository
3434
$ cargo build
3535
```
3636

37+
Bindings are pre-generated for x86_64 Linux. For other platforms, bindings are generated at compile time.
38+
39+
If the content in librocksdb_sys/crocksdb/crocksdb/c.h is updated, you may need to regenerate bindings:
40+
41+
```
42+
$ ./scripts/generate-bindings.sh
43+
```
44+
3745
## Running
3846

3947
###### Cargo.toml

librocksdb_sys/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ sse = ["libtitan_sys/sse"]
2323
[build-dependencies]
2424
cc = "1.0.3"
2525
cmake = "0.1"
26+
bindgen = "0.52"
2627

2728
[dependencies.jemalloc-sys]
2829
version = "0.1.8"

0 commit comments

Comments
 (0)