| 1 | use std::path::PathBuf; |
| 2 | |
| 3 | fn main() { |
| 4 | // Shared target directories may reuse this executable in another worktree. |
| 5 | let manifest_dir = PathBuf::from( |
| 6 | std::env::var_os("CARGO_MANIFEST_DIR").expect("Cargo sets CARGO_MANIFEST_DIR"), |
| 7 | ); |
| 8 | println!("cargo:rerun-if-env-changed=CARGO_MANIFEST_DIR"); |
| 9 | codewhale_build_support::declare_rerun_conditions(&manifest_dir); |
| 10 | codewhale_build_support::emit_build_version(&manifest_dir, env!("CARGO_PKG_VERSION")); |
| 11 | } |
| 12 |