Skip to content

Commit

Permalink
attempt to fix doc build
Browse files Browse the repository at this point in the history
  • Loading branch information
oberrich committed Apr 9, 2024
1 parent 6db7181 commit fb25b7f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "phnt"
version = "0.0.7"
version = "0.0.8"
license = "MIT"
authors = ["oberrich <[email protected]>"]
repository = "https://github.com/oberrich/phnt-rs"
Expand All @@ -13,7 +13,7 @@ description = "Rust bindings to the System Informer's (formerly known as Process
[package.metadata.docs.rs]
all-features = true
default-target = "x86_64-pc-windows-msvc"
targets = ["x86_64-pc-windows-msvc"]
targets = []

[build-dependencies]
windows.features = ["Win32_Foundation"]
Expand Down
5 changes: 5 additions & 0 deletions src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ fn main() {
"\\deps\\phnt-nightly"
));

if cfg!(doc) {
println!("Skipping regeneration of bindings for docs.");
return;
}

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

BindgenConfig::default()
Expand Down

0 comments on commit fb25b7f

Please sign in to comment.