-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge everything from accidental new project doing the same thing
- Loading branch information
1 parent
8ff8d2e
commit 918d9af
Showing
17 changed files
with
487 additions
and
218 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,14 @@ | ||
[build] | ||
target = "xtensa-esp32-espidf" | ||
|
||
[target.xtensa-esp32-espidf] | ||
linker = "ldproxy" | ||
# runner = "espflash --monitor" # Select this runner for espflash v1.x.x | ||
runner = "espflash flash --monitor" # Select this runner for espflash v2.x.x | ||
rustflags = [ "--cfg", "espidf_time64"] # Extending time_t for ESP IDF 5: https://github.com/esp-rs/rust/issues/110 | ||
[target.xtensa-esp32-none-elf] | ||
runner = "espflash flash --monitor" | ||
|
||
[unstable] | ||
build-std = ["std", "panic_abort"] | ||
|
||
[env] | ||
MCU="esp32" | ||
# Note: this variable is not used by the pio builder (`cargo build --features pio`) | ||
ESP_IDF_VERSION = "v5.1.1" | ||
ESP_LOGLEVEL = "INFO" | ||
|
||
[build] | ||
rustflags = ["-C", "link-arg=-nostartfiles"] | ||
|
||
target = "xtensa-esp32-none-elf" | ||
|
||
[unstable] | ||
build-std = ["core"] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,17 +24,17 @@ jobs: | |
- command: fmt | ||
args: --all -- --check --color always | ||
- command: clippy | ||
args: --all-targets --all-features --workspace -- -D warnings | ||
args: --all-features --workspace -- -D warnings | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Enable caching | ||
uses: Swatinem/rust-cache@v2 | ||
- name: Setup Rust | ||
uses: esp-rs/[email protected] | ||
with: | ||
default: true | ||
buildtargets: esp32 | ||
ldproxy: true | ||
ldproxy: false | ||
- name: Enable caching | ||
uses: Swatinem/rust-cache@v2 | ||
- name: Run command | ||
run: cargo ${{ matrix.action.command }} ${{ matrix.action.args }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"rust-analyzer.check.allTargets": false, | ||
// "rust-analyzer.check.noDefaultFeatures": true, | ||
// "rust-analyzer.cargo.noDefaultFeatures": true, | ||
// "rust-analyzer.showUnlinkedFileNotification": false, | ||
// "rust-analyzer.cargo.target": "thumbv7em-none-eabi", | ||
// "rust-analyzer.linkedProjects": [ | ||
// "Cargo.toml" | ||
// ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,53 @@ | ||
[package] | ||
name = "chicken-coop-rs" | ||
name = "chicken-coop" | ||
version = "0.1.0" | ||
authors = ["geoffdudds <[email protected]>"] | ||
authors = ["geoff.dudds <[email protected]>"] | ||
edition = "2021" | ||
resolver = "2" | ||
rust-version = "1.71" | ||
|
||
[profile.release] | ||
opt-level = "s" | ||
|
||
[profile.dev] | ||
debug = true # Symbols are nice and they don't increase the size on Flash | ||
opt-level = "z" | ||
|
||
[features] | ||
default = ["std", "embassy", "esp-idf-svc/native"] | ||
|
||
pio = ["esp-idf-svc/pio"] | ||
std = ["alloc", "esp-idf-svc/binstart", "esp-idf-svc/std"] | ||
alloc = ["esp-idf-svc/alloc"] | ||
nightly = ["esp-idf-svc/nightly"] | ||
experimental = ["esp-idf-svc/experimental"] | ||
embassy = [ | ||
"esp-idf-svc/embassy-sync", | ||
"esp-idf-svc/critical-section", | ||
"esp-idf-svc/embassy-time-driver", | ||
] | ||
license = "MIT OR Apache-2.0" | ||
|
||
[dependencies] | ||
log = { version = "0.4", default-features = false } | ||
esp-idf-svc = { version = "0.47.1", default-features = false } | ||
sunrise-next = "1.2" | ||
chrono = "0.4.31" | ||
sunrise-next = { version = "*", features = ["no-std"] } | ||
embassy-executor = { version = "0.6.0" } | ||
embassy-time = { version = "0.3.2", features = ["generic-queue"] } | ||
esp-hal-embassy = { version = "*", features = ["esp32"] } | ||
esp-println = { version = "0.11.0", features = ["esp32", "log"] } | ||
esp-backtrace = { version = "0.14.0", features = [ | ||
"esp32", | ||
"exception-handler", | ||
"panic-handler", | ||
"println", | ||
] } | ||
esp-hal = { version = "0.20.1", features = ["esp32"] } | ||
log = { version = "0.4.21" } | ||
embedded-io = "0.6.1" | ||
esp-wifi = { version = "0.9.1", features = [ | ||
"esp32", | ||
"phy-enable-usb", | ||
"utils", | ||
"wifi", | ||
] } | ||
heapless = { version = "0.8.0", default-features = false } | ||
smoltcp = { version = "0.11.0", default-features = false, features = [ | ||
"medium-ethernet", | ||
"proto-dhcpv4", | ||
"proto-igmp", | ||
"proto-ipv4", | ||
"socket-dhcpv4", | ||
"socket-icmp", | ||
"socket-raw", | ||
"socket-tcp", | ||
"socket-udp", | ||
] } | ||
[profile.dev] | ||
# Rust debug is too slow. | ||
# For debug builds always builds with some optimization | ||
opt-level = "s" | ||
|
||
[build-dependencies] | ||
embuild = "0.31.3" | ||
[profile.release] | ||
codegen-units = 1 # LLVM can perform better optimizations using a single thread | ||
debug = 2 | ||
debug-assertions = false | ||
incremental = false | ||
lto = 'fat' | ||
opt-level = 's' | ||
overflow-checks = false |
Oops, something went wrong.