make it possible to build without simulator SDL lib, to make crosscompile possible

This commit is contained in:
2025-09-05 01:13:26 +02:00
parent 7e198ec953
commit b80da21bf3
4 changed files with 14 additions and 7 deletions

View File

@@ -15,11 +15,12 @@ reqwest = { version = "0.12", default-features = false, features = ["http2","ru
serde = { version = "1.0.219", features = ["derive"] }
serde_json = "1.0.143"
bincode = "2.0.1"
embedded-graphics-simulator = "0.7.0"
embedded-graphics-simulator = { version = "0.7.0", optional = true }
[features]
default = ["simulator"] # use simulator by default
simulator = []
default = ["simulator"]
simulator = ["embedded-graphics-simulator"] # enable only for simulator builds
epaper = []
paper-png = []