Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add QoL config features in advanced cargo options #220

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions cargo/.cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,12 @@ ESP_IDF_VERSION = "master"
{% endif %}
# Workaround for https://github.com/esp-rs/esp-idf-template/issues/174
CRATE_CC_NO_DEFAULTS = "1"

# Set the install location for the ESP-IDF framework tooling.
{%- if installdir == "workspace - per project (inside .embuild)" %}
ESP_IDF_TOOLS_INSTALL_DIR = "workspace"
{% elsif installdir == "global - per user (inside $HOME/.espressif)" %}
ESP_IDF_TOOLS_INSTALL_DIR = "global"
{% endif %}

# For more ESP-IDF specific build options check out https://github.com/esp-rs/esp-idf-sys/blob/master/BUILD-OPTIONS.md
10 changes: 9 additions & 1 deletion cargo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,12 @@ log = { version = "0.4", default-features = false }
esp-idf-svc = { version = "0.49", default-features = false }

[build-dependencies]
embuild = "0.32.0"
embuild = "0.32.0"

{%- if git %}

[patch.crates-io]
esp-idf-sys = { git = "https://github.com/esp-rs/esp-idf-sys"}
esp-idf-hal = { git = "https://github.com/esp-rs/esp-idf-hal"}
esp-idf-svc = { git = "https://github.com/esp-rs/esp-idf-svc"}
{%- endif %}
11 changes: 11 additions & 0 deletions cargo/cargo-generate.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,17 @@ type = "bool"
prompt = "Add CI files for GitHub Action?"
default = false

[conditional.'advanced'.placeholders.installdir]
type = "string"
prompt = "Set installation dir of managed ESP-IDF version"
choices = ["workspace - per project (inside .embuild)", "global - per user (inside $HOME/.espressif)"]
default = "workspace - per project (inside .embuild)"

[conditional.'advanced'.placeholders.git]
type = "bool"
prompt = "Use latest git versions of esp-idf-* crates, instead of released crates.io versions"
default = false

[conditional.'!devcontainer']
ignore = [
".devcontainer/",
Expand Down