mirror of
https://github.com/bitwarden/browser
synced 2025-12-06 00:13:28 +00:00
This ensures we won't accidentally ship prod binaries that either have logging enabled or disable signature validation.
16 lines
415 B
Rust
16 lines
415 B
Rust
include!("config_constants.rs");
|
|
|
|
fn main() {
|
|
println!("cargo:rerun-if-changed=config_constants.rs");
|
|
|
|
if cfg!(not(debug_assertions)) {
|
|
if ENABLE_DEVELOPER_LOGGING {
|
|
panic!("ENABLE_DEVELOPER_LOGGING must be false in release builds");
|
|
}
|
|
|
|
if !ENABLE_SIGNATURE_VALIDATION {
|
|
panic!("ENABLE_SIGNATURE_VALIDATION must be true in release builds");
|
|
}
|
|
}
|
|
}
|