screen: Fix feature flags to make tests work again
This commit is contained in:
parent
dc547b8178
commit
c6f9aea38c
2 changed files with 5 additions and 4 deletions
|
|
@ -15,7 +15,7 @@ path = "./src/test.rs"
|
||||||
required-features = ["std"]
|
required-features = ["std"]
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["esp", "spat"]
|
default = ["esp", "spat", "gnss", "screen"]
|
||||||
|
|
||||||
# build for ESP (needed to build test for `host-tuple`)
|
# build for ESP (needed to build test for `host-tuple`)
|
||||||
esp = [
|
esp = [
|
||||||
|
|
@ -40,11 +40,11 @@ cam = ["c-its-parser/cam"]
|
||||||
# echo DENM events on serial and BLE
|
# echo DENM events on serial and BLE
|
||||||
denm = ["c-its-parser/denm"]
|
denm = ["c-its-parser/denm"]
|
||||||
# evaluate SPAT information
|
# evaluate SPAT information
|
||||||
spat = ["gnss", "screen", "c-its-parser/spatem", "c-its-parser/mapem"]
|
spat = ["c-its-parser/spatem", "c-its-parser/mapem"]
|
||||||
# enable some debug printing (without enabling debug logging of the ESP RTOS)
|
# enable some debug printing (without enabling debug logging of the ESP RTOS)
|
||||||
spat_debug = []
|
spat_debug = []
|
||||||
# enable ST7789 based display
|
# enable ST7789 based display
|
||||||
screen = ["dep:mipidsi", "dep:embedded-hal-bus", "dep:profont"]
|
screen = ["dep:mipidsi", "dep:embedded-graphics", "dep:embedded-hal-bus", "dep:profont"]
|
||||||
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|
@ -84,7 +84,7 @@ esp-radio = { version = "0.18.0", optional = true, features = [
|
||||||
|
|
||||||
embassy_gps = { version = "0.1.0", optional = true, default-features = false, features = ["esp", "log-04"], git = "https://github.com/jbeyerstedt/embassy_gps.git", branch = "feat/rework-gpsfix" }
|
embassy_gps = { version = "0.1.0", optional = true, default-features = false, features = ["esp", "log-04"], git = "https://github.com/jbeyerstedt/embassy_gps.git", branch = "feat/rework-gpsfix" }
|
||||||
embedded-hal-bus = { version = "0.3.0", optional = true }
|
embedded-hal-bus = { version = "0.3.0", optional = true }
|
||||||
embedded-graphics = "0.8.2"
|
embedded-graphics = { version = "0.8.2", optional = true }
|
||||||
c-its-parser = { version = "2.2.2", default-features = false, features = [
|
c-its-parser = { version = "2.2.2", default-features = false, features = [
|
||||||
"time",
|
"time",
|
||||||
"geo",
|
"geo",
|
||||||
|
|
|
||||||
|
|
@ -559,6 +559,7 @@ mod tests {
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
use crate::init_test_env_logger;
|
use crate::init_test_env_logger;
|
||||||
|
#[cfg(feature = "spat")]
|
||||||
use crate::testdata::{MAPEM_HH_560, MAPEM_HH_1328};
|
use crate::testdata::{MAPEM_HH_560, MAPEM_HH_1328};
|
||||||
|
|
||||||
#[cfg(feature = "spat")]
|
#[cfg(feature = "spat")]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue