File tree Expand file tree Collapse file tree 5 files changed +11
-0
lines changed
Expand file tree Collapse file tree 5 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ use std::str::{self, FromStr};
66// opening a GitHub issue if your build environment requires some way to enable
77// these cfgs other than by executing our build script.
88fn main ( ) {
9+ println ! ( "cargo:rerun-if-changed=build.rs" ) ;
10+
911 let minor = match rustc_minor_version ( ) {
1012 Some ( minor) => minor,
1113 None => return ,
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ use std::str;
66// opening a GitHub issue if your build environment requires some way to enable
77// these cfgs other than by executing our build script.
88fn main ( ) {
9+ println ! ( "cargo:rerun-if-changed=build.rs" ) ;
10+
911 let minor = match rustc_minor_version ( ) {
1012 Some ( minor) => minor,
1113 None => return ,
Original file line number Diff line number Diff line change 11use std:: path:: Path ;
22
33fn main ( ) {
4+ println ! ( "cargo:rerun-if-changed=build.rs" ) ;
5+ println ! ( "cargo:rerun-if-changed=src/mod.rs" ) ;
6+
47 // Sometimes on Windows the git checkout does not correctly wire up the
58 // symlink from serde_derive_internals/src to serde_derive/src/internals.
69 // When this happens we'll just build based on relative paths within the git
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ use std::str::{self, FromStr};
66// opening a GitHub issue if your build environment requires some way to enable
77// these cfgs other than by executing our build script.
88fn main ( ) {
9+ println ! ( "cargo:rerun-if-changed=build.rs" ) ;
10+
911 let minor = match rustc_minor_version ( ) {
1012 Some ( minor) => minor,
1113 None => return ,
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ fn has_cargo_expand() -> bool {
1919}
2020
2121fn main ( ) {
22+ println ! ( "cargo:rerun-if-changed=build.rs" ) ;
23+
2224 if cfg ! ( feature = "expandtest" ) && has_cargo_expand ( ) {
2325 println ! ( "cargo:rustc-cfg=expandtest" ) ;
2426 }
You can’t perform that action at this time.
0 commit comments