Skip to content

Commit

Permalink
bindgen: Make env_logger optional
Browse files Browse the repository at this point in the history
  • Loading branch information
madadam committed Sep 11, 2023
1 parent 177e3ef commit f578436
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bindgen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ path = "src/main.rs"

[dependencies]
cbindgen = "0.20.0"
env_logger = "0.10.0"
env_logger = { version = "0.10.0", optional = true }
1 change: 1 addition & 0 deletions bindgen/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use std::path::Path;
fn main() -> Result<(), Box<dyn std::error::Error>> {
// Generate the C bindings header

#[cfg(feature = "env_logger")]
env_logger::init();

let output_path = Path::new("target").join("bindings.h");
Expand Down

0 comments on commit f578436

Please sign in to comment.