SwarmBotMC / SwarmBot

🐜 A performant, autonomous bot launcher for Minecraft
Other
86 stars 9 forks source link

Can't build from cargo #63

Closed TheGreatRambler closed 3 years ago

TheGreatRambler commented 3 years ago

I'm trying to build this library from cargo using cargo +nightly install swarm-bot and I'm getting:

   Compiling swarm-bot v0.2.0
error[E0557]: feature has been removed
  --> C:\Users\aehar\.cargo\registry\src\github.com-1ecc6299db9ec823\swarm-bot-0.2.0\src\main.rs:19:12
   |
19 | #![feature(impl_trait_in_bindings)]
   |            ^^^^^^^^^^^^^^^^^^^^^^ feature has been removed
   |
   = note: the implementation was not maintainable, the feature may get reintroduced once the current refactorings are done

error[E0557]: feature has been removed
  --> C:\Users\aehar\.cargo\registry\src\github.com-1ecc6299db9ec823\swarm-bot-0.2.0\src\main.rs:24:12
   |
24 | #![feature(min_type_alias_impl_trait)]
   |            ^^^^^^^^^^^^^^^^^^^^^^^^^ feature has been removed
   |
   = note: removed in favor of full type_alias_impl_trait

error[E0658]: `impl Trait` in type aliases is unstable
  --> C:\Users\aehar\.cargo\registry\src\github.com-1ecc6299db9ec823\swarm-bot-0.2.0\src\client\state\global\mine_alloc.rs:40:22
   |
40 | pub type Locations = impl Iterator<Item=BlockLocation>;
   |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: see issue #63063 <https://github.com/rust-lang/rust/issues/63063> for more information
   = help: add `#![feature(type_alias_impl_trait)]` to the crate attributes to enable

Some errors have detailed explanations: E0557, E0658.
For more information about an error, try `rustc --explain E0557`.
error: failed to compile `swarm-bot v0.2.0`, intermediate artifacts can be found at `C:\Users\aehar\AppData\Local\Temp\cargo-installe0Z1QB`

Caused by:
  could not compile `swarm-bot` due to 3 previous errors