MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / dashboard_source_stamp_path

Function dashboard_source_stamp_path

build.rs:225–228  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

223/// verification - which forbids build scripts from editing tracked files -
224/// happy.
225fn 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
230fn read_dashboard_source_stamp() -> Option<String> {
231 let contents = fs::read_to_string(dashboard_source_stamp_path()?).ok()?;

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected