Skip to content

Commit ffa8751

Browse files
Merge #957
957: Add dependencies for top-level build script r=carols10cents Helps avoid unnecessarily compiling the main library!
2 parents d890192 + dd1523a commit ffa8751

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)