Skip to content

Commit

Permalink
Version 0.1.0 (#41)
Browse files Browse the repository at this point in the history
* Use `stable` toolchain

* Additional cargo metadata, update dependencies

* Add `clippy` check to the CI workflow

* Add `repository` key to cargo manifest

* Add `include` key to cargo manifest to make publish dry-run pass

* Update `README.md`
  • Loading branch information
jessebraham authored Nov 7, 2024
1 parent 4a90c05 commit 37581cf
Show file tree
Hide file tree
Showing 6 changed files with 82 additions and 38 deletions.
20 changes: 19 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
workflow_dispatch:
inputs:
all_combinations:
description: 'Checks all combinations of options'
description: "Checks all combinations of options"
required: true
type: boolean

Expand All @@ -31,6 +31,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}

jobs:
# --------------------------------------------------------------------------
# Verify

verify:
name: "Check ${{ matrix.chip }}"
runs-on: ubuntu-latest
Expand Down Expand Up @@ -68,6 +71,8 @@ jobs:
if: github.event_name == 'schedule' || inputs.all_combinations
run: cd xtask && cargo run -- check ${{ matrix.chip }} --all-combinations

# --------------------------------------------------------------------------
# Test

test:
runs-on: ubuntu-latest
Expand All @@ -78,3 +83,16 @@ jobs:

- name: Run tests
run: cargo test

# --------------------------------------------------------------------------
# Lint

clippy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable

- name: Run clippy
run: cargo clippy -- -D warnings
71 changes: 40 additions & 31 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 19 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
[package]
name = "esp-generate"
version = "0.1.0"
edition = "2021"
name = "esp-generate"
version = "0.1.0"
edition = "2021"
rust-version = "1.74"
description = "Template generation tool to create no_std applications targeting Espressif's chips"
repository = "https://github.com/esp-rs/esp-generate"
license = "MIT OR Apache-2.0"
keywords = ["esp32", "template"]
categories = ["command-line-utilities", "template-engine"]

include = [
"Cargo.toml",
"LICENSE-APACHE",
"LICENSE-MIT",
"README.md",
"src",
"template",
]

[dependencies]
clap = { version = "4.5.20", features = ["derive"] }
Expand All @@ -10,7 +25,7 @@ env_logger = "0.11.5"
esp-metadata = { version = "0.4.0", features = ["clap"] }
log = "0.4.22"
ratatui = { version = "0.29.0", features = ["crossterm"] }
rhai = "1.19.0"
rhai = "1.20.0"

[build-dependencies]
quote = "1.0.37"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ To generate a proect using this template:
1. Install `esp-generate`:

```
cargo install esp-generate --git https://github.com/esp-rs/esp-generate.git
cargo install esp-generate
```

2. Generate a project. There are two options:
Expand Down
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ fn main() {
};

std::fs::write("src/template_files.rs", code.to_string().as_bytes()).unwrap();
println!("cargo::rerun-if-changed=template");
println!("cargo:rerun-if-changed=template");
}
2 changes: 2 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[toolchain]
channel = "stable"

0 comments on commit 37581cf

Please sign in to comment.