esp-rs / esp-template

A minimal esp-hal application template for use with cargo-generate
Apache License 2.0
143 stars 29 forks source link

Binary name not correct in `wokwi.toml`. #151

Closed hlf20010508 closed 7 months ago

hlf20010508 commented 7 months ago

In wokwi.toml, it uses crate_name as binary name. But in Cargo.toml, it uses project-name. This results in file not found.

For example, if the project name is esp-test, after cargo build, it will build out a binary named esp-test, but wokwi will search esp_test.

If I change it to esp_test in Cargo.toml, the output binary name will be esp_test which is correct for wokwi.

SergioGasquez commented 7 months ago

I guess that we should use {{project-name}} instead of {{crate_name}, if you'd like to open a PR it would be appreciated, if not, I'll test it and create a PR on Monday.

hlf20010508 commented 7 months ago

Ok, I've opened a PR #152.