Skip to content

Commit

Permalink
feat: avoid to create hooky to project that uses dustdata
Browse files Browse the repository at this point in the history
  • Loading branch information
peeeuzin committed Mar 24, 2024
1 parent 1b59531 commit 6e6a65e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[env]
RUN_HOOKY = "true"
8 changes: 7 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ repository = "https://github.com/rustbase/dustdata"
homepage = "https://github.com/rustbase/dustdata"
authors = ["Rustbase"]
license = "MIT"
exclude = ["test_data/*", "README.md", "CONTRIBUTING.md", ".editorconfig"]
exclude = [
"test_data/*",
"README.md",
"CONTRIBUTING.md",
".editorconfig",
".cargo/*",
]
build = "./src/build.rs"

[lib]
Expand Down
6 changes: 5 additions & 1 deletion src/build.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
fn main() {
hooky::init(true)
let run_hooky = std::env::var("RUN_HOOKY").unwrap();

if run_hooky == "true" {
hooky::init(true)
}
}

0 comments on commit 6e6a65e

Please sign in to comment.