Skip to content

Commit

Permalink
Add feature for building with std support
Browse files Browse the repository at this point in the history
  • Loading branch information
CliffHan committed Nov 1, 2023
1 parent 1dd88a3 commit ce9fbdc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,14 @@ debug = true
opt-level = "z"

[features]
default = ["no_std"]
no_std = ["esp-idf-hal/critical-section"]
std = ["esp-idf-svc/std", "esp-idf-hal/std", "critical-section/std"]

[dependencies]
log = { version = "0.4", default-features = false }
esp-idf-sys = { version = "0.33", default-features = false }
esp-idf-hal = { version = "0.42", default-features = false, features = ["critical-section", "embassy-sync"] }
esp-idf-hal = { version = "0.42", default-features = false, features = ["embassy-sync"] }
esp-idf-svc = { version = "0.47", default-features = false, features = ["alloc"] }
embedded-svc = { version = "0.26", default-features = false }

Expand Down

0 comments on commit ce9fbdc

Please sign in to comment.