The stater kit comes with an algo crate for Rust algos. I downloaded the starter kit, and wanted to get a look at what I would be dealing with. I know rust can be a little slow with compiling (release), so I wanted to see how long the debug version would take to compile. So i tried to compile the starter algo that was provided (get that in the cache so future compiling is faster). I ran build_local.py. However, the compiler (cargo/rustc) returns an error (as seen below). The Rust algo crate has been updated approximately a month ago. I’ve seen others using Rust for their algos. I don’t know if they haven’t updated, or if they got theirs to work. I also created an issue on their github (https://github.com/correlation-one/C1GamesStarterKit/issues/106). Any help would be appreciated.
error[E0599]: no function or associated item named info_units
found for struct map::MapTileInner
in the current scope
–> algo/src/map/mod.rs:281:25
|
78 | pub struct MapTileInner {
| ----------------------- function or associated item info_units
not found for this
…
281 | } else if Self::info_units(c, map).len() > 0 {
| ^^^^^^^^^^ function or associated item not found in map::MapTileInner
error[E0599]: no method named into_info
found for enum units::SpawnableUnitType
in the current scope
–> algo/src/map/mod.rs:377:42
|
377 | unit_type: unit_type.into_info().unwrap(),
| ^^^^^^^^^ method not found in units::SpawnableUnitType
|
::: algo/src/units.rs:143:1
|
143 | pub enum SpawnableUnitType {
| -------------------------- method into_info
not found for this
error: aborting due to 2 previous errors
For more information about this error, try rustc --explain E0599
.
error: could not compile algo