From 41e905144cb3c8d911ad3dc9c210e0aca26bcdbd Mon Sep 17 00:00:00 2001 From: Evan Almloff Date: Tue, 14 Jun 2022 10:32:49 -0500 Subject: [PATCH] add warning when hot_reload is used in release builds --- packages/rsx_interpreter/src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/rsx_interpreter/src/lib.rs b/packages/rsx_interpreter/src/lib.rs index 75297abe4..07542b085 100644 --- a/packages/rsx_interpreter/src/lib.rs +++ b/packages/rsx_interpreter/src/lib.rs @@ -31,6 +31,12 @@ pub struct CodeLocation { } /// Get the resolved rsx given the origional rsx, a captured context of dynamic components, and a factory to build the resulting node +#[cfg_attr( + not(debug_assertions), + deprecated( + note = "The hot reload feature is enabled in release mode. This feature should be disabled for production builds." + ) +)] pub fn resolve_scope<'a>( location: CodeLocation, rsx: &'static str,