Skip to content

Commit

Permalink
Deleted layout tests from bindings.rs.
Browse files Browse the repository at this point in the history
Cykooz committed Dec 2, 2024
1 parent 8e1e476 commit 09ee5ba
Showing 3 changed files with 19 additions and 265 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log

## [Unreleased] - ReleaseDate

### Fixes

- Deleted layout tests from `bindings.rs`
([#8](https://github.com/Cykooz/libheif-sys/issues/8)).

## [2.2.0] - 2024-11-14

### Changes
12 changes: 12 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
@@ -51,6 +51,7 @@ fn main() {

// Finish the builder and generate the bindings.
let bindings = builder
.clone()
.generate()
// Unwrap the Result and panic on failure.
.expect("Unable to generate bindings");
@@ -60,5 +61,16 @@ fn main() {
bindings
.write_to_file(out_path.join("bindings.rs"))
.expect("Couldn't write bindings!");

let bindings = builder
.layout_tests(false)
.generate()
// Unwrap the Result and panic on failure.
.expect("Unable to generate bindings without layout tests");

let out_path = PathBuf::from(env::var("OUT_DIR").unwrap());
bindings
.write_to_file(out_path.join("bindings_wo_tests.rs"))
.expect("Couldn't write bindings_wo_tests.rs!");
}
}
Loading

0 comments on commit 09ee5ba

Please sign in to comment.