Closed rieval closed 1 year ago
Add RUSTFLAGS="--cfg=engine"
before that command and you should be good. Setting a .cargo/config.toml
as described in the new work-in-progress docs should also work.
That said, I'd be willing to create a perseus cargo ..
command that lets these sorts of things be done more easily, since you should really run them for --cfg=client as well.
For anyone just searching the error, this error also happens if you update Perseus without updating the cli.
cargo install perseus-cli --version 0.4.0-beta.16
@rwdj oh yes, currently the CLI is undergoing some major updates as well, so it needs to be kept in sync fully with whatever version you're using. Post v0.4.0 going stable however, that shouldn't be so much of a problem anymore.
I updated to beta.17
and followed the docs to create the .cargo/config.toml
. Everything seems to be working fine.
Hurray for you!
@rieval glad to hear! Since adding that file is now strongly recommended and works for this sort of thing, it's probably not worth creating a perseus cargo
command (especially since cargo rustc
would probably confuse the flags quite a bit).
This issue is reporting a bug in the code of Perseus. Details of the scope will be available in issue labels. The author described their issue as follows:
crate::PerseusNodeType
,crate::Request
--> C:\Users\86131.cargo\registry\src\github.com-1ecc6299db9ec823\perseus-0.4.0-beta.14\src\lib.rs:160:21Request
in the rootPerseusNodeType
in the rooterror[E0432]: unresolved import
crate::utils::PerseusDuration
--> C:\Users\86131.cargo\registry\src\github.com-1ecc6299db9ec823\perseus-0.4.0-beta.14\src\template\core\setters.rs:2:5 | 2 | use crate::utils::PerseusDuration; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ noPerseusDuration
inutils
decode_time_str::ComputedDuration
,decode_time_str::PerseusDuration
--> C:\Users\86131.cargo\registry\src\github.com-1ecc6299db9ec823\perseus-0.4.0-beta.14\src\utils\mod.rs:25:27PerseusDuration
inutils::decode_time_str
ComputedDuration
inutils::decode_time_str
M
is never used --> C:\Users\86131.cargo\registry\src\github.com-1ecc6299db9ec823\perseus-0.4.0-beta.14\src\init.rs:111:36T
is never used --> C:\Users\86131.cargo\registry\src\github.com-1ecc6299db9ec823\perseus-0.4.0-beta.14\src\init.rs:111:53G
is never used --> C:\Users\86131.cargo\registry\src\github.com-1ecc6299db9ec823\perseus-0.4.0-beta.14\src\reactor\mod.rs:71:20= help: consider removing
G
, referring to it in a field, or using a marker such asPhantomData
Some errors have detailed explanations: E0392, E0432. For more information about an error, try
rustc --explain E0392
. error: could not compileperseus
due to 7 previous errors