Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
wip - cargo gen limitations
Browse files Browse the repository at this point in the history
  • Loading branch information
MabezDev committed Mar 12, 2024
1 parent 7659448 commit d68446d
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 25 deletions.
44 changes: 22 additions & 22 deletions cargo-generate.toml → simple/cargo-generate.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[template]
cargo_generate_version = ">=0.17.4"
ignore = [".git", ".github/dependabot.yml", ".github/workflows/ci_docker.yml", ".github/workflows/ci.yml", ".github/workflows/issue_handler.yml", ".github/verify.sh", "README.md"]
include = ["../Cargo.toml", "../build.rs", "../.gitignore"]

[hooks]
pre = ["pre-script.rhai"]
Expand Down Expand Up @@ -42,29 +42,29 @@ type = "bool"
prompt = "Add CI files for GitHub Action?"
default = false

[conditional.'!devcontainer']
ignore = [
".devcontainer/",
".vscode/tasks.json",
"docs/",
"scripts/",
".dockerignore",
[conditional.'devcontainer']
include = [
"../.devcontainer/",
"../.vscode/tasks.json",
"../docs/",
"../scripts/",
"../.dockerignore",
]

[conditional.'!ci']
ignore = [".github"]
[conditional.'ci']
include = ["../.github"]

[conditional.'!wokwi']
ignore = [".vscode/launch.json", "diagram.json", "wokwi.toml"]
[conditional.'wokwi']
include = ["../.vscode/launch.json", "../diagram.json", "../wokwi.toml"]

[conditional.'!advanced']
ignore = [
".devcontainer/",
".vscode/",
"docs/",
"scripts/",
".github",
".dockerignore",
"diagram.json",
"wokwi.toml",
[conditional.'advanced']
include = [
"../.devcontainer/",
"../.vscode/",
"../docs/",
"../scripts/",
"../.github",
"../.dockerignore",
"../diagram.json",
"../wokwi.toml",
]
6 changes: 3 additions & 3 deletions post-script.rhai → simple/post-script.rhai
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ if variable::get("wifi"){
print("\nFor more information and examples of esp-wifi showcasing Wifi,BLE and ESP-NOW, see https://github.com/esp-rs/esp-wifi/blob/main/esp-wifi/docs/examples.md\n");
}

if variable::get("ci") {
file::rename(".github/rust_ci.yml", ".github/workflows/rust_ci.yml");
}
// if variable::get("ci") {
// file::rename(".github/rust_ci.yml", ".github/workflows/rust_ci.yml");
// }


try {
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit d68446d

Please sign in to comment.