sp1_recursion_core/stark/utils.rs
1/// Returns whether the `SP1_DEV` environment variable is enabled or disabled.
2///
3/// This variable controls whether a smaller version of the circuit will be used for generating the
4/// PLONK proofs. This is useful for development and testing purposes.
5///
6/// By default, the variable is disabled.
7pub fn sp1_dev_mode() -> bool {
8 let value = std::env::var("SP1_DEV").unwrap_or_else(|_| "false".to_string());
9 let enabled = value == "1" || value.to_lowercase() == "true";
10 if enabled {
11 tracing::warn!("SP1_DEV environment variable is enabled. do not enable this in production");
12 }
13 enabled
14}