Location of the persisted source stamp inside cargo's `OUT_DIR`. Keeping it in the build output (never the source tree) keeps `cargo package` verification - which forbids build scripts from editing tracked files - happy.
()
| 223 | /// verification - which forbids build scripts from editing tracked files - |
| 224 | /// happy. |
| 225 | fn dashboard_source_stamp_path() -> Option<PathBuf> { |
| 226 | let out_dir = std::env::var_os("OUT_DIR")?; |
| 227 | Some(Path::new(&out_dir).join("dashboard-source-stamp")) |
| 228 | } |
| 229 | |
| 230 | fn read_dashboard_source_stamp() -> Option<String> { |
| 231 | let contents = fs::read_to_string(dashboard_source_stamp_path()?).ok()?; |
no outgoing calls
no test coverage detected