Closed henke443 closed 6 years ago
Solved it! By changing the lines to
use rustneat::neat::Environment; use rustneat::neat::Organism; use rustneat::neat::Population;
instead of
use rustneat::Environment; use rustneat::Organism; use rustneat::Population;
The sample code in readme.md fails for me with this error:
error[E0432]: unresolved import
rustneat::Environment
--> src\main.rs:3:5 | 3 | use rustneat::Environment; | ^^^^^^^^^^^^^^^^^^^^^ noEnvironment
in the rooterror[E0432]: unresolved import
rustneat::Organism
--> src\main.rs:4:5 | 4 | use rustneat::Organism; | ^^^^^^^^^^^^^^^^^^ noOrganism
in the rooterror[E0432]: unresolved import
rustneat::Population
--> src\main.rs:5:5 | 5 | use rustneat::Population; | ^^^^^^^^^^^^^^^^^^^^ noPopulation
in the rooterror: cannot continue compilation due to previous error
I haven't programmed in rust for some time so I hope it's not some easy noob misstake on my part but I've tried to fix it for several hours now with no progress.
The things I've done is this:
[dependencies]
rustneat = "0.1.8"