Skip to content

Commit a1f5973

Browse files
committed
progress
1 parent 772b9f6 commit a1f5973

File tree

3 files changed

+2
-241
lines changed

3 files changed

+2
-241
lines changed

crates/pgt_query/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
193193
.generate()
194194
.map_err(|_| "Unable to generate bindings")?;
195195

196-
let bindings_path = src_dir.join("bindings.rs");
196+
let bindings_path = out_dir.join("bindings.rs");
197197
bindings.write_to_file(&bindings_path)?;
198198

199199
// For WASM/emscripten builds, manually add the function declarations

crates/pgt_query/src/bindings.rs

Lines changed: 0 additions & 239 deletions
This file was deleted.

crates/pgt_query/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub use protobuf::Node;
3737
#[allow(improper_ctypes)]
3838
#[allow(unsafe_op_in_unsafe_fn)]
3939
mod bindings {
40-
include!(concat!(env!("CARGO_MANIFEST_DIR"), "/src/bindings.rs"));
40+
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
4141
}
4242

4343
// Include the generated protobuf code

0 commit comments

Comments
 (0)