Skip to content

Commit d28265f

Browse files
authored
add cc-rs no-defaults workaround to all configs (#263)
1 parent fe4a881 commit d28265f

File tree

9 files changed

+27
-9
lines changed

9 files changed

+27
-9
lines changed

advanced/button-interrupt/.cargo/config.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ rustflags = ["--cfg", "espidf_time64", "-C", "default-linker-libraries"]
1212
build-std = ["panic_abort", "std"]
1313

1414
[env]
15-
# Enables the esp-idf-sys "native" build feature (`cargo build --features native`) to build against ESP-IDF (v5.1.2)
15+
# Enables the esp-idf-sys "native" build feature (`cargo build --features native`) to build against ESP-IDF (v5.2.2)
1616
ESP_IDF_VERSION = { value = "tag:v5.2.2" }
1717

1818
# These configurations will pick up your custom "sdkconfig.release", "sdkconfig.debug" or "sdkconfig.defaults[.*]" files
@@ -25,3 +25,5 @@ ESP_IDF_SDKCONFIG_DEFAULTS = { value = "./sdkconfig.defaults", relative = true }
2525
# ESP-IDF will be installed in ~/.espressif so it can be reused across the different examples.
2626
# See also https://github.com/esp-rs/esp-idf-sys#esp_idf_tools_install_dir-esp_idf_tools_install_dir
2727
ESP_IDF_TOOLS_INSTALL_DIR = { value = "global" }
28+
# Workaround for https://github.com/esp-rs/esp-idf-template/issues/174
29+
CRATE_CC_NO_DEFAULTS = "1"

advanced/i2c-driver/.cargo/config.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ rustflags = ["--cfg", "espidf_time64", "-C", "default-linker-libraries"]
1212
build-std = ["panic_abort", "std"]
1313

1414
[env]
15-
# Enables the esp-idf-sys "native" build feature (`cargo build --features native`) to build against ESP-IDF (v5.1.2)
15+
# Enables the esp-idf-sys "native" build feature (`cargo build --features native`) to build against ESP-IDF (v5.2.2)
1616
ESP_IDF_VERSION = { value = "tag:v5.2.2" }
1717

1818
# These configurations will pick up your custom "sdkconfig.release", "sdkconfig.debug" or "sdkconfig.defaults[.*]" files
@@ -25,3 +25,5 @@ ESP_IDF_SDKCONFIG_DEFAULTS = { value = "./sdkconfig.defaults", relative = true }
2525
# ESP-IDF will be installed in ~/.espressif so it can be reused across the different examples.
2626
# See also https://github.com/esp-rs/esp-idf-sys#esp_idf_tools_install_dir-esp_idf_tools_install_dir
2727
ESP_IDF_TOOLS_INSTALL_DIR = { value = "global" }
28+
# Workaround for https://github.com/esp-rs/esp-idf-template/issues/174
29+
CRATE_CC_NO_DEFAULTS = "1"

advanced/i2c-sensor-reading/.cargo/config.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ rustflags = ["--cfg", "espidf_time64", "-C", "default-linker-libraries"]
1212
build-std = ["panic_abort", "std"]
1313

1414
[env]
15-
# Enables the esp-idf-sys "native" build feature (`cargo build --features native`) to build against ESP-IDF (v5.1.2)
15+
# Enables the esp-idf-sys "native" build feature (`cargo build --features native`) to build against ESP-IDF (v5.2.2)
1616
ESP_IDF_VERSION = { value = "tag:v5.2.2" }
1717

1818
# These configurations will pick up your custom "sdkconfig.release", "sdkconfig.debug" or "sdkconfig.defaults[.*]" files
@@ -25,3 +25,5 @@ ESP_IDF_SDKCONFIG_DEFAULTS = { value = "./sdkconfig.defaults", relative = true }
2525
# ESP-IDF will be installed in ~/.espressif so it can be reused across the different examples.
2626
# See also https://github.com/esp-rs/esp-idf-sys#esp_idf_tools_install_dir-esp_idf_tools_install_dir
2727
ESP_IDF_TOOLS_INSTALL_DIR = { value = "global" }
28+
# Workaround for https://github.com/esp-rs/esp-idf-template/issues/174
29+
CRATE_CC_NO_DEFAULTS = "1"

common/lib/rgb-led/.cargo/config.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ rustflags = ["--cfg", "espidf_time64", "-C", "default-linker-libraries"]
1212
build-std = ["panic_abort", "std"]
1313

1414
[env]
15-
# Enables the esp-idf-sys "native" build feature (`cargo build --features native`) to build against ESP-IDF (v5.1.2)
15+
# Enables the esp-idf-sys "native" build feature (`cargo build --features native`) to build against ESP-IDF (v5.2.2)
1616
ESP_IDF_VERSION = { value = "tag:v5.2.2" }
1717

1818
# These configurations will pick up your custom "sdkconfig.release", "sdkconfig.debug" or "sdkconfig.defaults[.*]" files
@@ -25,3 +25,5 @@ ESP_IDF_SDKCONFIG_DEFAULTS = { value = "./sdkconfig.defaults", relative = true }
2525
# ESP-IDF will be installed in ~/.espressif so it can be reused across the different examples.
2626
# See also https://github.com/esp-rs/esp-idf-sys#esp_idf_tools_install_dir-esp_idf_tools_install_dir
2727
ESP_IDF_TOOLS_INSTALL_DIR = { value = "global" }
28+
# Workaround for https://github.com/esp-rs/esp-idf-template/issues/174
29+
CRATE_CC_NO_DEFAULTS = "1"

common/lib/wifi/.cargo/config.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ rustflags = ["--cfg", "espidf_time64", "-C", "default-linker-libraries"]
1212
build-std = ["panic_abort", "std"]
1313

1414
[env]
15-
# Enables the esp-idf-sys "native" build feature (`cargo build --features native`) to build against ESP-IDF (v5.1.2)
15+
# Enables the esp-idf-sys "native" build feature (`cargo build --features native`) to build against ESP-IDF (v5.2.2)
1616
ESP_IDF_VERSION = { value = "tag:v5.2.2" }
1717

1818
# These configurations will pick up your custom "sdkconfig.release", "sdkconfig.debug" or "sdkconfig.defaults[.*]" files
@@ -25,3 +25,5 @@ ESP_IDF_SDKCONFIG_DEFAULTS = { value = "./sdkconfig.defaults", relative = true }
2525
# ESP-IDF will be installed in ~/.espressif so it can be reused across the different examples.
2626
# See also https://github.com/esp-rs/esp-idf-sys#esp_idf_tools_install_dir-esp_idf_tools_install_dir
2727
ESP_IDF_TOOLS_INSTALL_DIR = { value = "global" }
28+
# Workaround for https://github.com/esp-rs/esp-idf-template/issues/174
29+
CRATE_CC_NO_DEFAULTS = "1"

intro/hardware-check/.cargo/config.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ rustflags = ["--cfg", "espidf_time64", "-C", "default-linker-libraries"]
1212
build-std = ["std", "panic_abort"]
1313

1414
[env]
15-
# Enables the esp-idf-sys "native" build feature (`cargo build --features native`) to build against ESP-IDF (v5.1.2)
15+
# Enables the esp-idf-sys "native" build feature (`cargo build --features native`) to build against ESP-IDF (v5.2.2)
1616
ESP_IDF_VERSION = { value = "tag:v5.2.2" }
1717

1818
# These configurations will pick up your custom "sdkconfig.release", "sdkconfig.debug" or "sdkconfig.defaults[.*]" files
@@ -25,3 +25,5 @@ ESP_IDF_SDKCONFIG_DEFAULTS = { value = "./sdkconfig.defaults", relative = true }
2525
# ESP-IDF will be installed in ~/.espressif so it can be reused across the different examples.
2626
# See also https://github.com/esp-rs/esp-idf-sys#esp_idf_tools_install_dir-esp_idf_tools_install_dir
2727
ESP_IDF_TOOLS_INSTALL_DIR = { value = "global" }
28+
# Workaround for https://github.com/esp-rs/esp-idf-template/issues/174
29+
CRATE_CC_NO_DEFAULTS = "1"

intro/http-client/.cargo/config.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ rustflags = ["--cfg", "espidf_time64", "-C", "default-linker-libraries"]
1212
build-std = ["panic_abort", "std"]
1313

1414
[env]
15-
# Enables the esp-idf-sys "native" build feature (`cargo build --features native`) to build against ESP-IDF (v5.1.2)
15+
# Enables the esp-idf-sys "native" build feature (`cargo build --features native`) to build against ESP-IDF (v5.2.2)
1616
ESP_IDF_VERSION = { value = "tag:v5.2.2" }
1717

1818
# These configurations will pick up your custom "sdkconfig.release", "sdkconfig.debug" or "sdkconfig.defaults[.*]" files
@@ -25,3 +25,5 @@ ESP_IDF_SDKCONFIG_DEFAULTS = { value = "./sdkconfig.defaults", relative = true }
2525
# ESP-IDF will be installed in ~/.espressif so it can be reused across the different examples.
2626
# See also https://github.com/esp-rs/esp-idf-sys#esp_idf_tools_install_dir-esp_idf_tools_install_dir
2727
ESP_IDF_TOOLS_INSTALL_DIR = { value = "global" }
28+
# Workaround for https://github.com/esp-rs/esp-idf-template/issues/174
29+
CRATE_CC_NO_DEFAULTS = "1"

intro/http-server/.cargo/config.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ rustflags = ["--cfg", "espidf_time64", "-C", "default-linker-libraries"]
1212
build-std = ["panic_abort", "std"]
1313

1414
[env]
15-
# Enables the esp-idf-sys "native" build feature (`cargo build --features native`) to build against ESP-IDF (v5.1.2)
15+
# Enables the esp-idf-sys "native" build feature (`cargo build --features native`) to build against ESP-IDF (v5.2.2)
1616
ESP_IDF_VERSION = { value = "tag:v5.2.2" }
1717

1818
# These configurations will pick up your custom "sdkconfig.release", "sdkconfig.debug" or "sdkconfig.defaults[.*]" files
@@ -25,3 +25,5 @@ ESP_IDF_SDKCONFIG_DEFAULTS = { value = "./sdkconfig.defaults", relative = true }
2525
# ESP-IDF will be installed in ~/.espressif so it can be reused across the different examples.
2626
# See also https://github.com/esp-rs/esp-idf-sys#esp_idf_tools_install_dir-esp_idf_tools_install_dir
2727
ESP_IDF_TOOLS_INSTALL_DIR = { value = "global" }
28+
# Workaround for https://github.com/esp-rs/esp-idf-template/issues/174
29+
CRATE_CC_NO_DEFAULTS = "1"

intro/mqtt/exercise/.cargo/config.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ build-std = ["panic_abort", "std"]
1313

1414

1515
[env]
16-
# Enables the esp-idf-sys "native" build feature (`cargo build --features native`) to build against ESP-IDF (v5.1.2)
16+
# Enables the esp-idf-sys "native" build feature (`cargo build --features native`) to build against ESP-IDF (v5.2.2)
1717
ESP_IDF_VERSION = { value = "tag:v5.2.2" }
1818

1919
# These configurations will pick up your custom "sdkconfig.release", "sdkconfig.debug" or "sdkconfig.defaults[.*]" files
@@ -26,3 +26,5 @@ ESP_IDF_SDKCONFIG_DEFAULTS = { value = "./sdkconfig.defaults", relative = true }
2626
# ESP-IDF will be installed in ~/.espressif so it can be reused across the different examples.
2727
# See also https://github.com/esp-rs/esp-idf-sys#esp_idf_tools_install_dir-esp_idf_tools_install_dir
2828
ESP_IDF_TOOLS_INSTALL_DIR = { value = "global" }
29+
# Workaround for https://github.com/esp-rs/esp-idf-template/issues/174
30+
CRATE_CC_NO_DEFAULTS = "1"

0 commit comments

Comments
 (0)