Skip to content

Commit

Permalink
build: using CARGO_PRIMARY_PACKAGE to build hooky
Browse files Browse the repository at this point in the history
  • Loading branch information
peeeuzin committed Apr 15, 2024
1 parent d54526c commit 6764728
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/build.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
fn main() {
let run_hooky = std::env::var("RUN_HOOKY");

if run_hooky == Ok("true".to_owned()) {
if option_env!("CARGO_PRIMARY_PACKAGE").is_some() {
hooky::init(true)
}
}

0 comments on commit 6764728

Please sign in to comment.