pub struct Layer0Config {
pub enabled: bool,
pub release_lto_thin: bool,
pub release_codegen_units_1: bool,
}Expand description
Layer 0 configuration pack knobs (bd-bqu38).
Every knob defaults to OFF and toggles independently — the kill/rollback
contract from the master plan (§149: removed from defaults if it regresses
representative p95, output equivalence, debugger behavior, or
compatibility). Knobs are injected into remote cargo builds as
CARGO_PROFILE_* environment variables, so enabling one never mutates any
user-owned .cargo/config.toml.
Fields§
§enabled: boolMaster switch: nothing is injected unless this is on.
release_lto_thin: boolprofile.release.lto = "thin" via CARGO_PROFILE_RELEASE_LTO=thin.
release_codegen_units_1: boolprofile.release.codegen-units = 1 via
CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1.
Implementations§
Source§impl Layer0Config
impl Layer0Config
Sourcepub fn active_env(&self) -> Vec<(&'static str, &'static str)>
pub fn active_env(&self) -> Vec<(&'static str, &'static str)>
Environment pairs to inject into a remote cargo build.
Empty unless Self::enabled — the master switch gates every knob so
an operator can disable the whole pack with one key. Order is stable
(declaration order) for deterministic emission and test assertions.
Trait Implementations§
Source§impl Clone for Layer0Config
impl Clone for Layer0Config
Source§impl Debug for Layer0Config
impl Debug for Layer0Config
Source§impl Default for Layer0Config
impl Default for Layer0Config
Source§impl<'de> Deserialize<'de> for Layer0Configwhere
Layer0Config: Default,
impl<'de> Deserialize<'de> for Layer0Configwhere
Layer0Config: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for Layer0Config
Source§impl PartialEq for Layer0Config
impl PartialEq for Layer0Config
Source§impl Serialize for Layer0Config
impl Serialize for Layer0Config
impl StructuralPartialEq for Layer0Config
Auto Trait Implementations§
impl Freeze for Layer0Config
impl RefUnwindSafe for Layer0Config
impl Send for Layer0Config
impl Sync for Layer0Config
impl Unpin for Layer0Config
impl UnsafeUnpin for Layer0Config
impl UnwindSafe for Layer0Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.