mirror of
https://github.com/Narukara/std-training-zh-cn.git
synced 2025-05-17 07:06:27 +08:00
update to 5831eba
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
// "build": {
|
||||
// "dockerfile": "Dockerfile",
|
||||
// "args": {
|
||||
// "NIGHTLY_VERSION": "nightly-2024-06-30"
|
||||
// "NIGHTLY_VERSION": "nightly-2025-01-01"
|
||||
// }
|
||||
// },
|
||||
"customizations": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
这里是 https://github.com/esp-rs/std-training 的简体中文翻译
|
||||
|
||||
目前进度:已经翻译完成,跟踪到 c7325fa
|
||||
目前进度:已经翻译完成,跟踪到 5831eba
|
||||
|
||||
---
|
||||
|
||||
|
@ -6,14 +6,14 @@ linker = "ldproxy"
|
||||
runner = "espflash flash --monitor"
|
||||
# Future - necessary for the experimental "native build" of esp-idf-sys with ESP32C3
|
||||
# See also https://github.com/ivmarkov/embuild/issues/16
|
||||
rustflags = ["--cfg", "espidf_time64", "-C", "default-linker-libraries"]
|
||||
rustflags = ["--cfg", "espidf_time64"]
|
||||
|
||||
[unstable]
|
||||
build-std = ["panic_abort", "std"]
|
||||
|
||||
[env]
|
||||
# Enables the esp-idf-sys "native" build feature (`cargo build --features native`) to build against ESP-IDF (v5.2.2)
|
||||
ESP_IDF_VERSION = { value = "tag:v5.2.2" }
|
||||
# Enables the esp-idf-sys "native" build feature (`cargo build --features native`) to build against ESP-IDF (v5.3.2)
|
||||
ESP_IDF_VERSION = { value = "tag:v5.3.2" }
|
||||
|
||||
# These configurations will pick up your custom "sdkconfig.release", "sdkconfig.debug" or "sdkconfig.defaults[.*]" files
|
||||
# that you might put in the root of the project
|
||||
@ -23,7 +23,6 @@ ESP_IDF_VERSION = { value = "tag:v5.2.2" }
|
||||
#ESP_IDF_SDKCONFIG = { value = "./sdkconfig.debug", relative = true }
|
||||
ESP_IDF_SDKCONFIG_DEFAULTS = { value = "./sdkconfig.defaults", relative = true }
|
||||
# ESP-IDF will be installed in ~/.espressif so it can be reused across the different examples.
|
||||
# See also https://github.com/esp-rs/esp-idf-sys#esp_idf_tools_install_dir-esp_idf_tools_install_dir
|
||||
# See also https://github.com/esp-rs/esp-idf-sys/blob/master/BUILD-OPTIONS.md#esp_idf_tools_install_dir-esp_idf_tools_install_dir
|
||||
ESP_IDF_TOOLS_INSTALL_DIR = { value = "global" }
|
||||
# Workaround for https://github.com/esp-rs/esp-idf-template/issues/174
|
||||
CRATE_CC_NO_DEFAULTS = "1"
|
||||
|
||||
|
@ -21,9 +21,9 @@ debug = true # Symbols are nice and they don't increase the size on Flash
|
||||
opt-level = "z"
|
||||
|
||||
[dependencies]
|
||||
anyhow = "=1.0.86"
|
||||
esp-idf-svc = "=0.49.0"
|
||||
anyhow = "=1.0.95"
|
||||
esp-idf-svc = "=0.50.1"
|
||||
rgb-led = { path = "../../common/lib/rgb-led" }
|
||||
|
||||
[build-dependencies]
|
||||
embuild = "=0.32.0"
|
||||
embuild = "=0.33.0"
|
||||
|
@ -1,3 +1,3 @@
|
||||
[toolchain]
|
||||
channel = "nightly-2024-06-30"
|
||||
channel = "nightly-2025-01-01"
|
||||
components = ["rust-src"]
|
||||
|
@ -6,14 +6,14 @@ linker = "ldproxy"
|
||||
runner = "espflash flash --monitor"
|
||||
# Future - necessary for the experimental "native build" of esp-idf-sys with ESP32C3
|
||||
# See also https://github.com/ivmarkov/embuild/issues/16
|
||||
rustflags = ["--cfg", "espidf_time64", "-C", "default-linker-libraries"]
|
||||
rustflags = ["--cfg", "espidf_time64"]
|
||||
|
||||
[unstable]
|
||||
build-std = ["panic_abort", "std"]
|
||||
|
||||
[env]
|
||||
# Enables the esp-idf-sys "native" build feature (`cargo build --features native`) to build against ESP-IDF (v5.2.2)
|
||||
ESP_IDF_VERSION = { value = "tag:v5.2.2" }
|
||||
# Enables the esp-idf-sys "native" build feature (`cargo build --features native`) to build against ESP-IDF (v5.3.2)
|
||||
ESP_IDF_VERSION = { value = "tag:v5.3.2" }
|
||||
|
||||
# These configurations will pick up your custom "sdkconfig.release", "sdkconfig.debug" or "sdkconfig.defaults[.*]" files
|
||||
# that you might put in the root of the project
|
||||
@ -23,7 +23,6 @@ ESP_IDF_VERSION = { value = "tag:v5.2.2" }
|
||||
#ESP_IDF_SDKCONFIG = { value = "./sdkconfig.debug", relative = true }
|
||||
ESP_IDF_SDKCONFIG_DEFAULTS = { value = "./sdkconfig.defaults", relative = true }
|
||||
# ESP-IDF will be installed in ~/.espressif so it can be reused across the different examples.
|
||||
# See also https://github.com/esp-rs/esp-idf-sys#esp_idf_tools_install_dir-esp_idf_tools_install_dir
|
||||
# See also https://github.com/esp-rs/esp-idf-sys/blob/master/BUILD-OPTIONS.md#esp_idf_tools_install_dir-esp_idf_tools_install_dir
|
||||
ESP_IDF_TOOLS_INSTALL_DIR = { value = "global" }
|
||||
# Workaround for https://github.com/esp-rs/esp-idf-template/issues/174
|
||||
CRATE_CC_NO_DEFAULTS = "1"
|
||||
|
||||
|
@ -20,9 +20,9 @@ debug = true # Symbols are nice and they don't increase the size on Flash
|
||||
opt-level = "z"
|
||||
|
||||
[dependencies]
|
||||
anyhow = "=1.0.86"
|
||||
anyhow = "=1.0.95"
|
||||
embedded-hal = "=0.2.7"
|
||||
esp-idf-svc = "=0.49.0"
|
||||
esp-idf-svc = "=0.50.1"
|
||||
|
||||
[build-dependencies]
|
||||
embuild = "=0.32.0"
|
||||
embuild = "=0.33.0"
|
||||
|
@ -1,3 +1,3 @@
|
||||
[toolchain]
|
||||
channel = "nightly-2024-06-30"
|
||||
channel = "nightly-2025-01-01"
|
||||
components = ["rust-src"]
|
||||
|
@ -6,14 +6,14 @@ linker = "ldproxy"
|
||||
runner = "espflash flash --monitor"
|
||||
# Future - necessary for the experimental "native build" of esp-idf-sys with ESP32C3
|
||||
# See also https://github.com/ivmarkov/embuild/issues/16
|
||||
rustflags = ["--cfg", "espidf_time64", "-C", "default-linker-libraries"]
|
||||
rustflags = ["--cfg", "espidf_time64"]
|
||||
|
||||
[unstable]
|
||||
build-std = ["panic_abort", "std"]
|
||||
|
||||
[env]
|
||||
# Enables the esp-idf-sys "native" build feature (`cargo build --features native`) to build against ESP-IDF (v5.2.2)
|
||||
ESP_IDF_VERSION = { value = "tag:v5.2.2" }
|
||||
# Enables the esp-idf-sys "native" build feature (`cargo build --features native`) to build against ESP-IDF (v5.3.2)
|
||||
ESP_IDF_VERSION = { value = "tag:v5.3.2" }
|
||||
|
||||
# These configurations will pick up your custom "sdkconfig.release", "sdkconfig.debug" or "sdkconfig.defaults[.*]" files
|
||||
# that you might put in the root of the project
|
||||
@ -23,7 +23,6 @@ ESP_IDF_VERSION = { value = "tag:v5.2.2" }
|
||||
#ESP_IDF_SDKCONFIG = { value = "./sdkconfig.debug", relative = true }
|
||||
ESP_IDF_SDKCONFIG_DEFAULTS = { value = "./sdkconfig.defaults", relative = true }
|
||||
# ESP-IDF will be installed in ~/.espressif so it can be reused across the different examples.
|
||||
# See also https://github.com/esp-rs/esp-idf-sys#esp_idf_tools_install_dir-esp_idf_tools_install_dir
|
||||
# See also https://github.com/esp-rs/esp-idf-sys/blob/master/BUILD-OPTIONS.md#esp_idf_tools_install_dir-esp_idf_tools_install_dir
|
||||
ESP_IDF_TOOLS_INSTALL_DIR = { value = "global" }
|
||||
# Workaround for https://github.com/esp-rs/esp-idf-template/issues/174
|
||||
CRATE_CC_NO_DEFAULTS = "1"
|
||||
|
||||
|
@ -20,13 +20,13 @@ debug = true # Symbols are nice and they don't increase the size on Flash
|
||||
opt-level = "z"
|
||||
|
||||
[dependencies]
|
||||
anyhow = "=1.0.86"
|
||||
anyhow = "=1.0.95"
|
||||
embedded-hal = "=0.2.7"
|
||||
esp-idf-svc = "=0.49.0"
|
||||
esp-idf-svc = "=0.50.1"
|
||||
icm42670 = "=0.1.1"
|
||||
lis3dh = "=0.4.2"
|
||||
shared-bus = "=0.3.1"
|
||||
shtcx = "=0.11.0"
|
||||
|
||||
[build-dependencies]
|
||||
embuild = "=0.32.0"
|
||||
embuild = "=0.33.0"
|
||||
|
@ -1,3 +1,3 @@
|
||||
[toolchain]
|
||||
channel = "nightly-2024-06-30"
|
||||
channel = "nightly-2025-01-01"
|
||||
components = ["rust-src"]
|
||||
|
@ -33,15 +33,23 @@ let foo = 1;
|
||||
|
||||
## 项目仿真
|
||||
|
||||
某些项目可以用 [Wokwi][wokwi] 仿真。寻找书中的指示来确认可以仿真的项目。仿真有两种方法实现:
|
||||
- 使用 wokwi.com:直接在浏览器中执行构建、编辑代码。
|
||||
- 使用 [Wokwi VS Code 扩展][wokwi-vscode]:用 VS Code 来编辑项目、执行构建。用 Wokwi VS Code 扩展对生成的二进制文件进行仿真。
|
||||
- 这种方法需要一些[安装][wokwi-installation]
|
||||
- 这种方法假定项目是在 debug 模式下构建的
|
||||
- 这种方法允许[调试项目][wokwi-debug]
|
||||
某些项目可以使用 [Wokwi][wokwi] 进行模拟,或者至少部分模拟。以下是支持 Wokwi 模拟的项目列表:
|
||||
- `intro/hello-world`
|
||||
- `intro/http-client`
|
||||
- `advanced/i2c-sensor-reading`
|
||||
- `advanced/i2c-driver`
|
||||
- `advanced/button-interrupt`
|
||||
|
||||
在开始任何模拟项目之前,你需要[安装扩展][wokwi-installation]。要模拟一个项目:
|
||||
|
||||
1. 按下 F1,选择 `Wokwi: Select Config File`,然后选择你要模拟的项目的 `wokwi.toml` 文件。
|
||||
1. 编辑对应的 `wokwi.toml` 文件,以模拟练习部分或解答部分。
|
||||
2. 以 `debug` 模式构建你的项目。
|
||||
3. 再次按下 F1,然后选择 `Wokwi: Start Simulator`。
|
||||
|
||||
你也可以[调试项目][wokwi-debug]。
|
||||
|
||||
[wokwi]: https://wokwi.com/
|
||||
[wokwi-vscode]: https://docs.wokwi.com/vscode/getting-started
|
||||
[wokwi-installation]: https://docs.wokwi.com/vscode/getting-started#installation
|
||||
[wokwi-debug]: https://docs.wokwi.com/vscode/debugging
|
||||
|
||||
|
@ -76,15 +76,6 @@ Error: could not connect to Wi-Fi network: ESP_ERR_TIMEOUT
|
||||
espflash monitor
|
||||
```
|
||||
|
||||
## Simulation
|
||||
|
||||
This project is available for simulation through two methods:
|
||||
- [Wokwi project](https://wokwi.com/projects/360342886675214337?build-cache=disable)
|
||||
- Wokwi VS Code extension:
|
||||
1. Press F1, select `Wokwi: Select Config File`, and choose `intro/hardware-check/wokwi.toml`.
|
||||
2. Build your project.
|
||||
3. Press F1 again and select `Wokwi: Start Simulator`.
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
### 构建错误
|
||||
|
@ -54,7 +54,7 @@ ESP_IDF_TOOLS_INSTALL_DIR = { value = "global" } # 添加这一行
|
||||
|
||||
```toml
|
||||
[toolchain]
|
||||
channel = "nightly-2024-06-30" # 修改这一行
|
||||
channel = "nightly-2025-01-01" # 修改这一行
|
||||
```
|
||||
|
||||
✅ 在 `hello-world` 目录中用下面的命令来运行项目:
|
||||
|
@ -69,19 +69,6 @@ match status {
|
||||
|
||||
✅ 编写一个自定义的 `Error` 枚举来表示这些错误。为这个错误实现 `std::error::Error` trait。
|
||||
|
||||
|
||||
## Simulation
|
||||
|
||||
This project is available for simulation through two methods:
|
||||
- Wokwi projects:
|
||||
- [Exercise](https://wokwi.com/projects/360722140931768321?build-cache=disable)
|
||||
- [Solution](https://wokwi.com/projects/333372159510446675?build-cache=disable)
|
||||
- Wokwi files are also present in the project folder to simulate it with Wokwi VS Code extension:
|
||||
1. Press F1, select `Wokwi: Select Config File` and choose `intro/http-client/wokwi.toml`
|
||||
- Edit the `wokwi.toml` file to select between exercise and solution simulation
|
||||
2. Build you project
|
||||
3. Press F1 again and select `Wokwi: Start Simulator`
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
- `missing WiFi name/password`:确保你已根据 `cfg.toml.example` 配置了 `cfg.toml`。一个常见的问题是包名和配置中的 section 名称不匹配。
|
||||
|
@ -125,17 +125,3 @@ GYRO: X: 0.00 Y: 0.00 Z: 0:00
|
||||
TEMP: [当地温度] °C
|
||||
HUM: [当地湿度] %
|
||||
```
|
||||
|
||||
## Simulation
|
||||
|
||||
This project is available for simulation through two methods:
|
||||
- Wokwi projects
|
||||
- [Exercise](https://wokwi.com/projects/360623713943950337?build-cache=disable)
|
||||
- [Solution Part 2](https://wokwi.com/projects/360344742047853569?build-cache=disable)
|
||||
- Wokwi files are also present in the project folder to simulate it with Wokwi VS Code extension:
|
||||
1. Press F1, select `Wokwi: Select Config File` and choose `advanced/i2c-sensor-reading/wokwi.toml`
|
||||
- Edit the `wokwi.toml` file to select between exercise and solutions simulation
|
||||
2. Build you project
|
||||
3. Press F1 again and select `Wokwi: Start Simulator`
|
||||
|
||||
When simulating this project, expect the following hardcoded values: `TEMP: 24.61 °C | HUM: 36.65 % | GYRO: X= 0.00 Y= 0.00 Z= 0.00`
|
@ -68,16 +68,3 @@
|
||||
在这个特定的上下文中,我们使用的是一个外部设备(因为它是一个传感器,即使与主控芯片在同一块 PCB 上)。它可通过 I2C 寻址,我们在读取和写入其寄存器的地址。每个地址都标识了唯一的一个位置,其中包含了一些信息。在这种情况下,我们想要的是包含当前温度的位置的地址。
|
||||
|
||||
如果你想尝试从这个传感器获取其他有趣的数据,可以在[第 14 节](https://invensense.tdk.com/wp-content/uploads/2021/07/DS-000451-ICM-42670-P-v1.0.pdf)中找到 ICM-42670 的寄存器表。
|
||||
|
||||
|
||||
|
||||
## Simulation
|
||||
|
||||
This project is available for simulation through two methods:
|
||||
- Wokwi projects
|
||||
- [Exercise](https://wokwi.com/projects/360728357589094401?build-cache=disable)
|
||||
- [Solution](https://wokwi.com/projects/333375074521317970?build-cache=disable)
|
||||
- Wokwi files are also present in the project folder to simulate it with Wokwi VS Code extension:
|
||||
1. Press F1, select `Wokwi: Select Config File` and choose `advanced/i2c-driver/wokwi.toml`
|
||||
2. Build you project
|
||||
3. Press F1 again and select `Wokwi: Start Simulator`
|
@ -30,16 +30,3 @@ cargo run --example solution
|
||||
🔎 在本练习中,我们使用通知(notification),它只会提供最新的值。
|
||||
因此如果在读取通知的值之前,中断被多次触发,你只能得到最新的值。
|
||||
另一方面,队列允许接收多个值。更多详细信息请参阅 `esp_idf_hal::task::queue::Queue`。
|
||||
|
||||
## Simulation
|
||||
|
||||
This project is available for simulation through two methods:
|
||||
- Wokwi projects
|
||||
- [Exercise](https://wokwi.com/projects/360623288920412161?build-cache=disable)
|
||||
- [Solution](https://wokwi.com/projects/333374799393849940?build-cache=disable)
|
||||
- The Solution project contains solution for [Random LED Color on pushinig a Button](./04_4_2_interrupts.md)
|
||||
- Wokwi files are also present in the project folder to simulate it with Wokwi VS Code extension:
|
||||
1. Press F1, select `Wokwi: Select Config File` and choose `advanced/button-interrupt/wokwi.toml`
|
||||
- Edit the `wokwi.toml` file to select between exercise and solution simulation
|
||||
2. Build you project
|
||||
3. Press F1 again and select `Wokwi: Start Simulator`
|
@ -8,8 +8,8 @@ authors = [
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
anyhow = "=1.0.86"
|
||||
anyhow = "=1.0.95"
|
||||
|
||||
[build-dependencies]
|
||||
anyhow = "=1.0.86"
|
||||
anyhow = "=1.0.95"
|
||||
uuid = { version = "=1.9.1", features = ["v4"] }
|
||||
|
@ -8,4 +8,4 @@ authors = [
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
rgb = "=0.8.40"
|
||||
rgb = "=0.8.50"
|
||||
|
@ -6,14 +6,14 @@ linker = "ldproxy"
|
||||
runner = "espflash flash --monitor"
|
||||
# Future - necessary for the experimental "native build" of esp-idf-sys with ESP32C3
|
||||
# See also https://github.com/ivmarkov/embuild/issues/16
|
||||
rustflags = ["--cfg", "espidf_time64", "-C", "default-linker-libraries"]
|
||||
rustflags = ["--cfg", "espidf_time64"]
|
||||
|
||||
[unstable]
|
||||
build-std = ["panic_abort", "std"]
|
||||
|
||||
[env]
|
||||
# Enables the esp-idf-sys "native" build feature (`cargo build --features native`) to build against ESP-IDF (v5.2.2)
|
||||
ESP_IDF_VERSION = { value = "tag:v5.2.2" }
|
||||
# Enables the esp-idf-sys "native" build feature (`cargo build --features native`) to build against ESP-IDF (v5.3.2)
|
||||
ESP_IDF_VERSION = { value = "tag:v5.3.2" }
|
||||
|
||||
# These configurations will pick up your custom "sdkconfig.release", "sdkconfig.debug" or "sdkconfig.defaults[.*]" files
|
||||
# that you might put in the root of the project
|
||||
@ -23,7 +23,6 @@ ESP_IDF_VERSION = { value = "tag:v5.2.2" }
|
||||
#ESP_IDF_SDKCONFIG = { value = "./sdkconfig.debug", relative = true }
|
||||
ESP_IDF_SDKCONFIG_DEFAULTS = { value = "./sdkconfig.defaults", relative = true }
|
||||
# ESP-IDF will be installed in ~/.espressif so it can be reused across the different examples.
|
||||
# See also https://github.com/esp-rs/esp-idf-sys#esp_idf_tools_install_dir-esp_idf_tools_install_dir
|
||||
# See also https://github.com/esp-rs/esp-idf-sys/blob/master/BUILD-OPTIONS.md#esp_idf_tools_install_dir-esp_idf_tools_install_dir
|
||||
ESP_IDF_TOOLS_INSTALL_DIR = { value = "global" }
|
||||
# Workaround for https://github.com/esp-rs/esp-idf-template/issues/174
|
||||
CRATE_CC_NO_DEFAULTS = "1"
|
||||
|
||||
|
@ -5,10 +5,11 @@ edition = "2021"
|
||||
authors = ["Sergio Gasquez <sergio.gasquez@gmail.com>"]
|
||||
|
||||
[dependencies]
|
||||
anyhow = "=1.0.86"
|
||||
esp-idf-svc = "=0.49.0"
|
||||
anyhow = "=1.0.95"
|
||||
esp-idf-svc = "=0.50.1"
|
||||
esp-idf-hal ={ version = "=0.45.0", features = ["rmt-legacy"] }
|
||||
log = "=0.4.22"
|
||||
rgb = "0.8.29"
|
||||
|
||||
[build-dependencies]
|
||||
embuild = "=0.32.0"
|
||||
embuild = "=0.33.0"
|
||||
|
@ -1,3 +1,3 @@
|
||||
[toolchain]
|
||||
channel = "nightly-2024-06-30"
|
||||
channel = "nightly-2025-01-01"
|
||||
components = ["rust-src"]
|
||||
|
@ -1,6 +1,6 @@
|
||||
use anyhow::Result;
|
||||
use core::time::Duration;
|
||||
use esp_idf_svc::hal::{
|
||||
use esp_idf_hal::{
|
||||
gpio::OutputPin,
|
||||
peripheral::Peripheral,
|
||||
rmt::{config::TransmitConfig, FixedLengthSignal, PinState, Pulse, RmtChannel, TxRmtDriver},
|
||||
|
@ -6,14 +6,14 @@ linker = "ldproxy"
|
||||
runner = "espflash flash --monitor"
|
||||
# Future - necessary for the experimental "native build" of esp-idf-sys with ESP32C3
|
||||
# See also https://github.com/ivmarkov/embuild/issues/16
|
||||
rustflags = ["--cfg", "espidf_time64", "-C", "default-linker-libraries"]
|
||||
rustflags = ["--cfg", "espidf_time64"]
|
||||
|
||||
[unstable]
|
||||
build-std = ["panic_abort", "std"]
|
||||
|
||||
[env]
|
||||
# Enables the esp-idf-sys "native" build feature (`cargo build --features native`) to build against ESP-IDF (v5.2.2)
|
||||
ESP_IDF_VERSION = { value = "tag:v5.2.2" }
|
||||
# Enables the esp-idf-sys "native" build feature (`cargo build --features native`) to build against ESP-IDF (v5.3.2)
|
||||
ESP_IDF_VERSION = { value = "tag:v5.3.2" }
|
||||
|
||||
# These configurations will pick up your custom "sdkconfig.release", "sdkconfig.debug" or "sdkconfig.defaults[.*]" files
|
||||
# that you might put in the root of the project
|
||||
@ -23,7 +23,6 @@ ESP_IDF_VERSION = { value = "tag:v5.2.2" }
|
||||
#ESP_IDF_SDKCONFIG = { value = "./sdkconfig.debug", relative = true }
|
||||
ESP_IDF_SDKCONFIG_DEFAULTS = { value = "./sdkconfig.defaults", relative = true }
|
||||
# ESP-IDF will be installed in ~/.espressif so it can be reused across the different examples.
|
||||
# See also https://github.com/esp-rs/esp-idf-sys#esp_idf_tools_install_dir-esp_idf_tools_install_dir
|
||||
# See also https://github.com/esp-rs/esp-idf-sys/blob/master/BUILD-OPTIONS.md#esp_idf_tools_install_dir-esp_idf_tools_install_dir
|
||||
ESP_IDF_TOOLS_INSTALL_DIR = { value = "global" }
|
||||
# Workaround for https://github.com/esp-rs/esp-idf-template/issues/174
|
||||
CRATE_CC_NO_DEFAULTS = "1"
|
||||
|
||||
|
@ -5,12 +5,12 @@ edition = "2021"
|
||||
authors = ["Sergio Gasquez <sergio.gasquez@gmail.com>"]
|
||||
|
||||
[dependencies]
|
||||
anyhow = "=1.0.86"
|
||||
esp-idf-svc = "=0.49.0"
|
||||
anyhow = "=1.0.95"
|
||||
esp-idf-svc = "=0.50.1"
|
||||
log = "=0.4.22"
|
||||
|
||||
[build-dependencies]
|
||||
embuild = "=0.32.0"
|
||||
embuild = "=0.33.0"
|
||||
|
||||
[dev-dependencies]
|
||||
toml-cfg = "=0.1.3"
|
||||
|
@ -1,3 +1,3 @@
|
||||
[toolchain]
|
||||
channel = "nightly-2024-06-30"
|
||||
channel = "nightly-2025-01-01"
|
||||
components = ["rust-src"]
|
||||
|
@ -6,14 +6,14 @@ linker = "ldproxy"
|
||||
runner = "espflash flash --monitor"
|
||||
# Future - necessary for the experimental "native build" of esp-idf-sys with ESP32C3
|
||||
# See also https://github.com/ivmarkov/embuild/issues/16
|
||||
rustflags = ["--cfg", "espidf_time64", "-C", "default-linker-libraries"]
|
||||
rustflags = ["--cfg", "espidf_time64"]
|
||||
|
||||
[unstable]
|
||||
build-std = ["std", "panic_abort"]
|
||||
|
||||
[env]
|
||||
# Enables the esp-idf-sys "native" build feature (`cargo build --features native`) to build against ESP-IDF (v5.2.2)
|
||||
ESP_IDF_VERSION = { value = "tag:v5.2.2" }
|
||||
# Enables the esp-idf-sys "native" build feature (`cargo build --features native`) to build against ESP-IDF (v5.3.2)
|
||||
ESP_IDF_VERSION = { value = "tag:v5.3.2" }
|
||||
|
||||
# These configurations will pick up your custom "sdkconfig.release", "sdkconfig.debug" or "sdkconfig.defaults[.*]" files
|
||||
# that you might put in the root of the project
|
||||
@ -23,7 +23,6 @@ ESP_IDF_VERSION = { value = "tag:v5.2.2" }
|
||||
#ESP_IDF_SDKCONFIG = { value = "./sdkconfig.debug", relative = true }
|
||||
ESP_IDF_SDKCONFIG_DEFAULTS = { value = "./sdkconfig.defaults", relative = true }
|
||||
# ESP-IDF will be installed in ~/.espressif so it can be reused across the different examples.
|
||||
# See also https://github.com/esp-rs/esp-idf-sys#esp_idf_tools_install_dir-esp_idf_tools_install_dir
|
||||
# See also https://github.com/esp-rs/esp-idf-sys/blob/master/BUILD-OPTIONS.md#esp_idf_tools_install_dir-esp_idf_tools_install_dir
|
||||
ESP_IDF_TOOLS_INSTALL_DIR = { value = "global" }
|
||||
# Workaround for https://github.com/esp-rs/esp-idf-template/issues/174
|
||||
CRATE_CC_NO_DEFAULTS = "1"
|
||||
|
||||
|
@ -20,13 +20,13 @@ debug = true # Symbols are nice and they don't increase the size on Flash
|
||||
opt-level = "z"
|
||||
|
||||
[dependencies]
|
||||
anyhow = "=1.0.86"
|
||||
esp-idf-svc = "=0.49.0"
|
||||
anyhow = "=1.0.95"
|
||||
esp-idf-svc = "=0.50.1"
|
||||
log = "=0.4.22"
|
||||
rgb-led = { path = "../../common/lib/rgb-led" }
|
||||
toml-cfg = "=0.1.3"
|
||||
wifi = { path = "../../common/lib/wifi" }
|
||||
|
||||
[build-dependencies]
|
||||
embuild = "=0.32.0"
|
||||
embuild = "=0.33.0"
|
||||
toml-cfg = "=0.1.3"
|
||||
|
@ -1,3 +1,3 @@
|
||||
[toolchain]
|
||||
channel = "nightly-2024-06-30"
|
||||
channel = "nightly-2025-01-01"
|
||||
components = ["rust-src"]
|
||||
|
@ -6,14 +6,14 @@ linker = "ldproxy"
|
||||
runner = "espflash flash --monitor"
|
||||
# Future - necessary for the experimental "native build" of esp-idf-sys with ESP32C3
|
||||
# See also https://github.com/ivmarkov/embuild/issues/16
|
||||
rustflags = ["--cfg", "espidf_time64", "-C", "default-linker-libraries"]
|
||||
rustflags = ["--cfg", "espidf_time64"]
|
||||
|
||||
[unstable]
|
||||
build-std = ["panic_abort", "std"]
|
||||
|
||||
[env]
|
||||
# Enables the esp-idf-sys "native" build feature (`cargo build --features native`) to build against ESP-IDF (v5.2.2)
|
||||
ESP_IDF_VERSION = { value = "tag:v5.2.2" }
|
||||
# Enables the esp-idf-sys "native" build feature (`cargo build --features native`) to build against ESP-IDF (v5.3.2)
|
||||
ESP_IDF_VERSION = { value = "tag:v5.3.2" }
|
||||
|
||||
# These configurations will pick up your custom "sdkconfig.release", "sdkconfig.debug" or "sdkconfig.defaults[.*]" files
|
||||
# that you might put in the root of the project
|
||||
@ -23,7 +23,6 @@ ESP_IDF_VERSION = { value = "tag:v5.2.2" }
|
||||
#ESP_IDF_SDKCONFIG = { value = "./sdkconfig.debug", relative = true }
|
||||
ESP_IDF_SDKCONFIG_DEFAULTS = { value = "./sdkconfig.defaults", relative = true }
|
||||
# ESP-IDF will be installed in ~/.espressif so it can be reused across the different examples.
|
||||
# See also https://github.com/esp-rs/esp-idf-sys#esp_idf_tools_install_dir-esp_idf_tools_install_dir
|
||||
# See also https://github.com/esp-rs/esp-idf-sys/blob/master/BUILD-OPTIONS.md#esp_idf_tools_install_dir-esp_idf_tools_install_dir
|
||||
ESP_IDF_TOOLS_INSTALL_DIR = { value = "global" }
|
||||
# Workaround for https://github.com/esp-rs/esp-idf-template/issues/174
|
||||
CRATE_CC_NO_DEFAULTS = "1"
|
||||
|
||||
|
@ -20,12 +20,12 @@ debug = true # Symbols are nice and they don't increase the size on Flash
|
||||
opt-level = "z"
|
||||
|
||||
[dependencies]
|
||||
anyhow = "=1.0.86"
|
||||
embedded-svc = "=0.28.0"
|
||||
esp-idf-svc = "=0.49.0"
|
||||
anyhow = "=1.0.95"
|
||||
embedded-svc = "=0.28.1"
|
||||
esp-idf-svc = "=0.50.1"
|
||||
toml-cfg = "=0.1.3"
|
||||
wifi = { path = "../../common/lib/wifi" }
|
||||
|
||||
[build-dependencies]
|
||||
embuild = "=0.32.0"
|
||||
embuild = "=0.33.0"
|
||||
toml-cfg = "=0.1.3"
|
||||
|
@ -1,3 +1,3 @@
|
||||
[toolchain]
|
||||
channel = "nightly-2024-06-30"
|
||||
channel = "nightly-2025-01-01"
|
||||
components = ["rust-src"]
|
||||
|
@ -6,14 +6,14 @@ linker = "ldproxy"
|
||||
runner = "espflash flash --monitor"
|
||||
# Future - necessary for the experimental "native build" of esp-idf-sys with ESP32C3
|
||||
# See also https://github.com/ivmarkov/embuild/issues/16
|
||||
rustflags = ["--cfg", "espidf_time64", "-C", "default-linker-libraries"]
|
||||
rustflags = ["--cfg", "espidf_time64"]
|
||||
|
||||
[unstable]
|
||||
build-std = ["panic_abort", "std"]
|
||||
|
||||
[env]
|
||||
# Enables the esp-idf-sys "native" build feature (`cargo build --features native`) to build against ESP-IDF (v5.2.2)
|
||||
ESP_IDF_VERSION = { value = "tag:v5.2.2" }
|
||||
# Enables the esp-idf-sys "native" build feature (`cargo build --features native`) to build against ESP-IDF (v5.3.2)
|
||||
ESP_IDF_VERSION = { value = "tag:v5.3.2" }
|
||||
|
||||
# These configurations will pick up your custom "sdkconfig.release", "sdkconfig.debug" or "sdkconfig.defaults[.*]" files
|
||||
# that you might put in the root of the project
|
||||
@ -23,7 +23,6 @@ ESP_IDF_VERSION = { value = "tag:v5.2.2" }
|
||||
#ESP_IDF_SDKCONFIG = { value = "./sdkconfig.debug", relative = true }
|
||||
ESP_IDF_SDKCONFIG_DEFAULTS = { value = "./sdkconfig.defaults", relative = true }
|
||||
# ESP-IDF will be installed in ~/.espressif so it can be reused across the different examples.
|
||||
# See also https://github.com/esp-rs/esp-idf-sys#esp_idf_tools_install_dir-esp_idf_tools_install_dir
|
||||
# See also https://github.com/esp-rs/esp-idf-sys/blob/master/BUILD-OPTIONS.md#esp_idf_tools_install_dir-esp_idf_tools_install_dir
|
||||
ESP_IDF_TOOLS_INSTALL_DIR = { value = "global" }
|
||||
# Workaround for https://github.com/esp-rs/esp-idf-template/issues/174
|
||||
CRATE_CC_NO_DEFAULTS = "1"
|
||||
|
||||
|
@ -20,13 +20,13 @@ debug = true # Symbols are nice and they don't increase the size on Flash
|
||||
opt-level = "z"
|
||||
|
||||
[dependencies]
|
||||
anyhow = "=1.0.86"
|
||||
embedded-svc = "=0.28.0"
|
||||
esp-idf-svc = "=0.49.0"
|
||||
anyhow = "=1.0.95"
|
||||
embedded-svc = "=0.28.1"
|
||||
esp-idf-svc = "=0.50.1"
|
||||
shtcx = "=1.0.0"
|
||||
toml-cfg = "=0.1.3"
|
||||
wifi = { path = "../../common/lib/wifi" }
|
||||
|
||||
[build-dependencies]
|
||||
embuild = "=0.32.0"
|
||||
embuild = "=0.33.0"
|
||||
toml-cfg = "=0.1.3"
|
||||
|
@ -1,3 +1,3 @@
|
||||
[toolchain]
|
||||
channel = "nightly-2024-06-30"
|
||||
channel = "nightly-2025-01-01"
|
||||
components = ["rust-src"]
|
||||
|
@ -6,15 +6,15 @@ linker = "ldproxy"
|
||||
runner = "espflash flash --monitor"
|
||||
# Future - necessary for the experimental "native build" of esp-idf-sys with ESP32C3
|
||||
# See also https://github.com/ivmarkov/embuild/issues/16
|
||||
rustflags = ["--cfg", "espidf_time64", "-C", "default-linker-libraries"]
|
||||
rustflags = ["--cfg", "espidf_time64"]
|
||||
|
||||
[unstable]
|
||||
build-std = ["panic_abort", "std"]
|
||||
|
||||
|
||||
[env]
|
||||
# Enables the esp-idf-sys "native" build feature (`cargo build --features native`) to build against ESP-IDF (v5.2.2)
|
||||
ESP_IDF_VERSION = { value = "tag:v5.2.2" }
|
||||
# Enables the esp-idf-sys "native" build feature (`cargo build --features native`) to build against ESP-IDF (v5.3.2)
|
||||
ESP_IDF_VERSION = { value = "tag:v5.3.2" }
|
||||
|
||||
# These configurations will pick up your custom "sdkconfig.release", "sdkconfig.debug" or "sdkconfig.defaults[.*]" files
|
||||
# that you might put in the root of the project
|
||||
@ -24,7 +24,6 @@ ESP_IDF_VERSION = { value = "tag:v5.2.2" }
|
||||
#ESP_IDF_SDKCONFIG = { value = "./sdkconfig.debug", relative = true }
|
||||
ESP_IDF_SDKCONFIG_DEFAULTS = { value = "./sdkconfig.defaults", relative = true }
|
||||
# ESP-IDF will be installed in ~/.espressif so it can be reused across the different examples.
|
||||
# See also https://github.com/esp-rs/esp-idf-sys#esp_idf_tools_install_dir-esp_idf_tools_install_dir
|
||||
# See also https://github.com/esp-rs/esp-idf-sys/blob/master/BUILD-OPTIONS.md#esp_idf_tools_install_dir-esp_idf_tools_install_dir
|
||||
ESP_IDF_TOOLS_INSTALL_DIR = { value = "global" }
|
||||
# Workaround for https://github.com/esp-rs/esp-idf-template/issues/174
|
||||
CRATE_CC_NO_DEFAULTS = "1"
|
||||
|
||||
|
@ -20,9 +20,9 @@ debug = true # Symbols are nice and they don't increase the size on Flash
|
||||
opt-level = "z"
|
||||
|
||||
[dependencies]
|
||||
anyhow = "=1.0.86"
|
||||
embedded-svc = "=0.28.0"
|
||||
esp-idf-svc = "=0.49.0"
|
||||
anyhow = "=1.0.95"
|
||||
embedded-svc = "=0.28.1"
|
||||
esp-idf-svc = "=0.50.1"
|
||||
get-uuid = { path = "../../../common/lib/get-uuid" }
|
||||
log = "=0.4.22"
|
||||
mqtt-messages = { path = "../../../common/lib/mqtt-messages" }
|
||||
@ -32,5 +32,5 @@ toml-cfg = "=0.1.3"
|
||||
wifi = { path = "../../../common/lib/wifi" }
|
||||
|
||||
[build-dependencies]
|
||||
embuild = "=0.32.0"
|
||||
embuild = "=0.33.0"
|
||||
toml-cfg = "=0.1.3"
|
||||
|
@ -1,3 +1,3 @@
|
||||
[toolchain]
|
||||
channel = "nightly-2024-06-30"
|
||||
channel = "nightly-2025-01-01"
|
||||
components = ["rust-src"]
|
||||
|
Reference in New Issue
Block a user