• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 use std::path::Path;
2 
main()3 fn main() {
4     // Sometimes on Windows the git checkout does not correctly wire up the
5     // symlink from serde_derive_internals/src to serde_derive/src/internals.
6     // When this happens we'll just build based on relative paths within the git
7     // repo.
8     let mod_behind_symlink = Path::new("src/mod.rs");
9     if !mod_behind_symlink.exists() {
10         println!("cargo:rustc-cfg=serde_build_from_git");
11     }
12 }
13