Skip to content

Commit

Permalink
cargo publish --dry-run fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
oberrich committed Apr 8, 2024
1 parent 3673fd6 commit 16b195e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 52,985 deletions.
8 changes: 4 additions & 4 deletions src/build.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use std::collections::HashMap;
use std::env;
use std::path::PathBuf;

use regex::Regex;

Expand Down Expand Up @@ -118,13 +119,12 @@ fn main() {
"\\deps\\phnt-nightly"
));

let out_path = PathBuf::from(env::var("OUT_DIR").unwrap()).join("generated.rs");

BindgenConfig::default()
.generate_bindings()
.expect("Unable to generate bindings!")
.write_to_file(concat!(
env!("CARGO_MANIFEST_DIR"),
"\\src\\ffi\\generated.rs"
))
.write_to_file(out_path)
.expect("Unable to write bindings");

println!("Generated bindings successfully.");
Expand Down
Loading

0 comments on commit 16b195e

Please sign in to comment.