src: build without --feature simulation

This commit is contained in:
2025-12-25 11:56:34 +01:00
parent 6e1f5423f9
commit 7e0889b624
2 changed files with 6 additions and 1 deletions

View File

@@ -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<StreamType> for SensorSource {
fn from(value: StreamType) -> Self {
match value {

View File

@@ -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;