From 6b24cc151e455a89754feca155cc3b22a9fb17a8 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Tue, 25 Oct 2022 20:53:27 +0800 Subject: [PATCH] Add auto-gen notice to build template. --- build.rs | 1 + build.template | 2 ++ src/config.rs | 2 ++ 3 files changed, 5 insertions(+) diff --git a/build.rs b/build.rs index fa7570c5..66903154 100644 --- a/build.rs +++ b/build.rs @@ -6,6 +6,7 @@ use std::{ fn main() { // Tell Cargo that if the given environment variable changes, to rerun this build script. + println!("cargo:rerun-if-changed=build.template"); println!("cargo:rerun-if-env-changed=RHAI_AHASH_SEED"); let mut contents = String::new(); diff --git a/build.template b/build.template index b55d13e8..6f09909f 100644 --- a/build.template +++ b/build.template @@ -1,4 +1,6 @@ //! Configuration settings for this Rhai build +//! +//! This file is auto-generated from `build.template` /// Fixed hashing seeds for stable hashing. /// Set to [`None`] to disable stable hashing. diff --git a/src/config.rs b/src/config.rs index 9eb456fd..93db79d5 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1,4 +1,6 @@ //! Configuration settings for this Rhai build +//! +//! This file is auto-generated from `build.template` /// Fixed hashing seeds for stable hashing. /// Set to [`None`] to disable stable hashing.