refactor: add a new 'devtools' feature in clarity crate

This commit is contained in:
Hugo Caillard
2024-03-13 16:44:02 +01:00
parent 99b54f5f62
commit fdf193554e
2 changed files with 2 additions and 2 deletions

View File

@@ -55,4 +55,4 @@ default = []
developer-mode = []
slog_json = ["stacks_common/slog_json"]
testing = []
devtools = []

View File

@@ -1739,7 +1739,7 @@ impl<'a, 'hooks> GlobalContext<'a, 'hooks> {
self.roll_back()?;
}
Ok(Value::Response(data))
} else if allow_private && cfg!(feature = "developer-mode") {
} else if allow_private && cfg!(feature = "devtools") {
self.commit()?;
Ok(result)
} else {