Skip to content

Commit

Permalink
chore: start rewrite in no_std
Browse files Browse the repository at this point in the history
  • Loading branch information
akosnad committed Oct 5, 2024
1 parent d0a53fc commit 5f565f2
Show file tree
Hide file tree
Showing 14 changed files with 1,696 additions and 579 deletions.
26 changes: 12 additions & 14 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
[build]
target = "xtensa-esp32-espidf"

[target.xtensa-esp32-espidf]
linker = "ldproxy"
runner = "espflash flash --monitor" # Select this runner for espflash v3.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"

# Workaround for https://github.com/esp-rs/esp-idf-template/issues/174
CRATE_CC_NO_DEFAULTS = "1"
[build]
rustflags = [
"-C", "link-arg=-nostartfiles",
]

target = "xtensa-esp32-none-elf"

[unstable]
build-std = ["alloc", "core"]
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,14 @@

/config.yml
/ota.bin

debug/

# These are backup files generated by rustfmt
**/*.rs.bk

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb

# Nix
result
Loading

0 comments on commit 5f565f2

Please sign in to comment.