#[cfg(feature = "crash-report")]
pub use crash_report::CrashReportAttributes;
use serde::Deserialize;
use serde::Serialize;
#[derive(Serialize, Deserialize)]
pub struct ProductAttributes {}
impl ProductAttributes {
#[allow(clippy::new_without_default)]
pub fn new(
#[cfg(feature = "crash-report")] _crash_attrs: CrashReportAttributes,
#[cfg(feature = "process-invariants")] _process_invariants: EmulatorProcessInvariants,
) -> Self {
Self {}
}
}
pub fn init_child_crash_reporting(_attrs: &ProductAttributes) {
}
pub fn product_child_setup(_attrs: &ProductAttributes) -> anyhow::Result<()> {
Ok(())
}
#[cfg(feature = "process-invariants")]
#[derive(Debug, Clone)]
pub struct EmulatorProcessInvariants {}
#[cfg(feature = "process-invariants")]
pub fn init_broker_process_invariants(
_data_handle: &Option<u64>,
_data_size: &Option<usize>,
) -> anyhow::Result<EmulatorProcessInvariants> {
Ok(EmulatorProcessInvariants {})
}