When the build script runs it generates a series files prefixed with basic_ and tweak_ as well as writing associated tests into the lib.rs file.
All the generated files contain just the following code and nothing else:
use plotters::prelude::*;
pub fn entry_point() { main(); }
And this code fails to build with the following error:
cannot find function `main` in this scope
The result is the following outuput from the cargo build and cargo test commands:
error: could not compile `guide` due to 27 previous errors; 27 warnings emitted
I am running this in VSCode on windows. I have tried running VSCode as an administrator in case it had something to do with file writing privileges but no joy.
When the build script runs it generates a series files prefixed with
basic_
andtweak_
as well as writing associated tests into thelib.rs
file.All the generated files contain just the following code and nothing else:
And this code fails to build with the following error:
The result is the following outuput from the
cargo build
andcargo test
commands:I am running this in VSCode on windows. I have tried running VSCode as an administrator in case it had something to do with file writing privileges but no joy.
Thanks