From 7e0889b624515270a2bfb9b02a1764f43206fa80 Mon Sep 17 00:00:00 2001 From: Victoria Fischer Date: Thu, 25 Dec 2025 11:56:34 +0100 Subject: [PATCH] src: build without --feature simulation --- src/events.rs | 5 ++++- src/lib.rs | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/events.rs b/src/events.rs index 70d04e1..0f72220 100644 --- a/src/events.rs +++ b/src/events.rs @@ -5,7 +5,7 @@ use enum_map::Enum; use enumset::EnumSetType; use nalgebra::{Vector2, Vector3}; -use crate::{ego::engine::MotionState, simdata::StreamType}; +use crate::ego::engine::MotionState; #[derive(Clone, Copy, Default, Debug)] pub enum Scene { @@ -105,6 +105,9 @@ pub enum SensorSource { Annotations } +#[cfg(feature="simulation")] +use crate::simdata::StreamType; +#[cfg(feature="simulation")] impl From for SensorSource { fn from(value: StreamType) -> Self { match value { diff --git a/src/lib.rs b/src/lib.rs index 53a12b3..965bbe9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -8,6 +8,8 @@ pub mod animation; pub mod idle; pub mod logging; pub mod graphics; + +#[cfg(feature="simulation")] pub mod simdata; extern crate alloc;