Skip to content

Commit

Permalink
bindgen: pre-generate bindings (#402)
Browse files Browse the repository at this point in the history
  • Loading branch information
fredbjer authored and sre-bot committed Dec 18, 2019
1 parent 8d06b36 commit 809c1dc
Show file tree
Hide file tree
Showing 5 changed files with 4,335 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ $ git submodule update --init --recursive # if you just cloned the repository
$ cargo build
```

Bindings are pre-generated for x86_64 Linux. For other platforms, bindings are generated at compile time.

If the content in librocksdb_sys/crocksdb/crocksdb/c.h is updated, you may need to regenerate bindings:

```
$ ./scripts/generate-bindings.sh
```

## Running

###### Cargo.toml
Expand Down
1 change: 1 addition & 0 deletions librocksdb_sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ sse = ["libtitan_sys/sse"]
[build-dependencies]
cc = "1.0.3"
cmake = "0.1"
bindgen = "0.52"

[dependencies.jemalloc-sys]
version = "0.1.8"
Expand Down
Loading

0 comments on commit 809c1dc

Please sign in to comment.