From ae90dffb777a0238b8ccb312addbe1e59af0aee8 Mon Sep 17 00:00:00 2001 From: Kevin K Date: Fri, 3 Feb 2017 12:29:45 -0500 Subject: [PATCH] docs(Macros): adds a warning about changing values in Cargo.toml not triggering a rebuild automatically Closes #838 --- src/macros.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/macros.rs b/src/macros.rs index 86a2c8eb063..ee43113f737 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -498,6 +498,13 @@ macro_rules! crate_name { /// Provided separator is for the [`crate_authors!`](macro.crate_authors.html) macro, /// refer to the documentation therefor. /// +/// **NOTE:** Changing the values in your `Cargo.toml` does not trigger a re-build automatically, +/// and therefore won't change the generated output until you recompile. +/// +/// **Pro Tip:** In some cases you can "trick" the compiler into triggering a rebuild when your +/// `Cargo.toml` is changed by including this in your `src/main.rs` file +/// `include_str!("../Cargo.toml");` +/// /// # Examples /// /// ```no_run