Files
react/compiler/crates/react_hir/src/features.rs
T
Joe Savona f33e63838d Update copyrights to reference Meta instead of Facebook
Thanks @zpao!!! This was mostly his work, i just fixed up the last bit.
2024-04-03 08:43:36 -07:00

20 lines
760 B
Rust

/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
use serde::{Deserialize, Serialize};
/// Describes the feature flags available to control compilation and validation.
/// This type is serializable in order to support parsing from config files or
/// serialized values when invoked from other languages.
#[derive(Serialize, Deserialize, Debug)]
pub struct Features {
/// Validate that mutable lambdas are not passed where a frozen value is expected,
/// since mutable lambdas cannot be frozen. The only mutation allowed inside a
/// frozen lambda is of ref values.
pub validate_frozen_lambdas: bool,
}