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 51eceef commit 8cd6fdcCopy full SHA for 8cd6fdc
build.rs
@@ -1,6 +1,9 @@
1
extern crate bindgen;
2
extern crate cc;
3
4
+use std::env;
5
+use std::path::PathBuf;
6
+
7
fn main() {
8
// Build a Redis pseudo-library so that we have symbols that we can link
9
// against while building Rust code.
@@ -39,7 +42,8 @@ fn main() {
39
42
.generate()
40
43
.expect("error generating bindings");
41
44
45
+ let out_path = PathBuf::from(env::var("OUT_DIR").unwrap());
46
bindings
- .write_to_file("src/redisraw/bindings.rs")
47
+ .write_to_file(out_path.join("bindings.rs"))
48
.expect("failed to write bindings to file");
49
}
0 commit comments