Closed hlf20010508 closed 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.
wokwi.toml
crate_name
Cargo.toml
project-name
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.
esp-test
cargo build
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.
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.
{{project-name}}
{{crate_name}
Ok, I've opened a PR #152.
In
wokwi.toml
, it usescrate_name
as binary name. But inCargo.toml
, it usesproject-name
. This results infile not found
.For example, if the project name is
esp-test
, aftercargo build
, it will build out a binary namedesp-test
, but wokwi will searchesp_test
.If I change it to
esp_test
inCargo.toml
, the output binary name will beesp_test
which is correct for wokwi.