-
Notifications
You must be signed in to change notification settings - Fork 28
Minor updates #139
Minor updates #139
Changes from 6 commits
2fcaf78
b2fa85d
58f5be3
f875a61
c3216d1
a39fc68
11160e9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"rust-analyzer.checkOnSave.allTargets": false, | ||
"rust-analyzer.check.allTargets": false, | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,21 +6,26 @@ edition = "2021" | |
license = "MIT OR Apache-2.0" | ||
|
||
[dependencies] | ||
hal = { package = "{{ mcu }}-hal", version = "{{ hal_version }}" } | ||
esp-backtrace = { version = "0.9.0", features = ["{{ mcu }}", "panic-handler", "exception-handler", "print-uart"] } | ||
{{ mcu }}-hal = "{{ hal_version }}" | ||
esp-backtrace = { version = "0.10.0", features = ["{{ mcu }}", "panic-handler", "exception-handler", "print-uart"] } | ||
{% if logging -%} | ||
esp-println = { version = "0.7.0", features = ["{{ mcu }}","log"] } | ||
log = { version = "0.4.18" } | ||
esp-println = { version = "0.8.0", features = ["{{ mcu }}", "log"] } | ||
log = { version = "0.4.20" } | ||
{% else -%} | ||
esp-println = { version = "0.7.0", features = ["{{ mcu }}"] } | ||
esp-println = { version = "0.8.0", features = ["{{ mcu }}"] } | ||
{% endif -%} | ||
{% if alloc -%} | ||
esp-alloc = { version = "0.3.0" } | ||
{% endif -%} | ||
{% if wifi -%} | ||
esp-wifi = { version = "0.1.1", features = ["{{ mcu }}", "wifi"] } | ||
smoltcp = { version = "0.10.0", default-features=false, features = ["proto-igmp", "proto-ipv4", "socket-tcp", "socket-icmp", "socket-udp", "medium-ethernet", "proto-dhcpv4", "socket-raw", "socket-dhcpv4"] } | ||
embedded-svc = { version = "0.26.1", default-features = false, features = [] } | ||
embedded-io = "0.4.0" | ||
heapless = { version = "0.7.14", default-features = false } | ||
esp-wifi = { version = "0.2.0", features = ["{{ mcu }}", "wifi"] } | ||
smoltcp = { version = "0.11.0", default-features=false, features = ["proto-igmp", "proto-ipv4", "socket-tcp", "socket-icmp", "socket-udp", "medium-ethernet", "proto-dhcpv4", "socket-raw", "socket-dhcpv4"] } | ||
embedded-svc = { version = "0.26.4", default-features = false, features = [] } | ||
embedded-io = "0.6.1" | ||
heapless = { version = "0.8.0", default-features = false } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure we should bump this since it's mostly used for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. oh sorry - we shouldn't downgrade embedded-io but heapless: https://crates.io/crates/embedded-svc/0.26.4/dependencies Reason is, it's used in esp-wifi's (through embedded-svc) public API There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. downgrading smoltcp is probably good since for some reason we forgot to bump it in esp-wifi 0.2.0 🤦♂️ There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think now, if I understood it correctly, dependencies should be fine. |
||
{% endif -%} | ||
|
||
{% if mcu == "esp32" or mcu == "esp32c2" %} | ||
[features] | ||
default = ["{{ mcu }}-hal/xtal-40mhz"] | ||
{% endif %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the reason we don't want to alias the HAL dependency anymore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What was the reason we did it in the first place? I always found it weird and needless, every time I generated a template I changed it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh ... interesting. I found it to be easier to copy code around this way ... however, I don't have a hard preference. Was just curious - and also once we did the split, we will just have
esp_hal
or somethingThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't feel too strongly about this, so feel free to revert if anybody else does.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dont have any hard preference, tbh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The main idea behind alias is to increase portability of the code. Using alias makes it easier to have common app code for multiple targets.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The next release will unify the hal, meaning all hals will be exposed under
esp_hal
, just likeesp_idf_hal
supports all target in one.