afonsolage / projekto

Voxel game made with Bevy Engine
MIT License
59 stars 4 forks source link

Compile issues #51

Closed atrefonas closed 2 years ago

atrefonas commented 2 years ago

I tried compiling it from the source cargo build, and am seeing these issues:

   Compiling bevy_core v0.8.0
   Compiling projekto_core v0.1.0 (/Users/a3voices/experiments/projekto/crates/core)
error[E0554]: `#![feature]` may not be used on the stable release channel
 --> crates/core/src/lib.rs:1:12
  |
1 | #![feature(int_log)]
  |            ^^^^^^^

error[E0599]: no method named `ilog2` found for type `usize` in the current scope
  --> crates/core/src/chunk.rs:19:37
   |
19 | const X_SHIFT: usize = (Z_AXIS_SIZE.ilog2() + Z_SHIFT as u32) as usize;
   |                                     ^^^^^ help: there is an associated function with a similar name: `log`

error[E0599]: no method named `ilog2` found for type `usize` in the current scope
  --> crates/core/src/chunk.rs:20:36
   |
20 | const Z_SHIFT: usize = Y_AXIS_SIZE.ilog2() as usize;
   |                                    ^^^^^ help: there is an associated function with a similar name: `log`

Some errors have detailed explanations: E0554, E0599.
rustc --version
rustc 1.62.1 (e092d0b6b 2022-07-16)
afonsolage commented 2 years ago

In order to use int_log feature, which enables some const functions used by projekto_core, you have to use nightly toolchain.

I should mention it on README.md btw.

afonsolage commented 2 years ago

Added this information on README.md