diff --git a/examples/env_locations/build.rs b/examples/env_locations/build.rs index 9e63d61b10..7170b59b77 100644 --- a/examples/env_locations/build.rs +++ b/examples/env_locations/build.rs @@ -1,4 +1,15 @@ fn main() { + println!("data path is {:?}", env!("GENERATED_DATA")); + println!("cwd is {:?}", std::env::current_dir()); + println!( + "files in cwd: {:?}", + std::fs::read_dir(".").unwrap().collect::>() + ); + println!( + "files in parent: {:?}", + std::fs::read_dir("..").unwrap().collect::>() + ); + let generated_data = std::fs::read_to_string(env!("GENERATED_DATA")).unwrap(); // our generated data file should be readable assert_eq!(generated_data, "hello\n");