Skip to content

Commit dd1523a

Browse files
committed
Add dependencies for top-level build script
Helps avoid unnecessarily compiling the main library!
1 parent 9abe890 commit dd1523a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ use dotenv::dotenv;
88
use std::env;
99

1010
fn main() {
11+
println!("cargo:rerun-if-env-changed=TEST_DATABASE_URL");
12+
println!("cargo:rerun-if-changed=build.rs");
1113
if env::var("PROFILE") == Ok("debug".into()) {
1214
let _ = dotenv();
1315
if let Ok(database_url) = env::var("TEST_DATABASE_URL") {

0 commit comments

Comments
 (0)