thetawavegame / thetawave

A physics based, space shooter game made with Rust and the Bevy engine.
https://thetawave.metalmancy.tech
MIT License
159 stars 9 forks source link

error: cannot find attribute `argh` in this scope #174

Closed sviscapi closed 2 months ago

sviscapi commented 2 months ago

Dear @varoonp123 ,

I got the following error when trying to compile Thetawave from a fresh "git clone" on Debian 11 "Bullseye" x86_64:

cargo build --release --features storage --features arcade
[...]
Compiling thetawave v0.1.1 (/home/samuel/src/thetawave)
error: cannot find attribute `argh` in this scope
  --> src/options/mod.rs:49:9
   |
49 |         argh(switch, short = 'a')
   |         ^^^^

error: could not compile `thetawave` (bin "thetawave") due to 1 previous error

What am I doing wrong ?

cargo 1.79.0-nightly (80d5b607d 2024-04-19)
rustc 1.79.0-nightly (dbce3b43b 2024-04-20)

Best regards,

Samuel

varoonp123 commented 2 months ago

I goofed a bit in the conditional compilation and will push up a fix later today. Thanks for reminding me of this :)

You can also do cargo build --features cli but by the end of the day, that feature will truly be optional and default to basically the same behavior as in the browser.