We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c96e8b7 commit d14ba09Copy full SHA for d14ba09
build.rs
@@ -1,6 +1,8 @@
1
extern crate bindgen;
2
3
use cmake::Config;
4
+use std::env;
5
+use std::path::PathBuf;
6
7
fn main() {
8
// Generate bindings for RediSearch
@@ -15,9 +17,10 @@ fn main() {
15
17
.generate()
16
18
.expect("error generating RediSearch bindings");
19
20
+ let out_path = PathBuf::from(env::var("OUT_DIR").unwrap());
21
bindings
- .write_to_file("src/raw/bindings.rs")
- .expect("failed to write RediSearch bindings to file");
22
+ .write_to_file(out_path.join("bindings.rs"))
23
+ .expect("failed to write bindings to file");
24
25
// Find and link statically to libredisearch.a
26
// TODO: Consider splitting the low level libredisearch wrapper off into a separate `-sys` crate.
0 commit comments