framesurge / perseus

A state-driven web development framework for Rust with full support for server-side rendering and static generation.
https://framesurge.sh/perseus/en-US
MIT License
2.15k stars 89 forks source link

perseus-cli installation fail on windows 10. #324

Open laloutre87 opened 2 months ago

laloutre87 commented 2 months ago

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:

On Windows 10, installation ( cargo install perseus-cli ) fails.

Error message :

error[E0432]: unresolved import winapi::shared::winerror --> [...] .cargo\registry\src\index.crates.io-6f17d22bba15001f\notify-5.0.0-pre.13\src\windows.rs:9:21 | 9 | use winapi::shared::winerror::ERROR_OPERATION_ABORTED; | ^^^^^^^^ could not find winerror in shared

Upgrading the "notify" depency version requirement to 5.1 allow the installation to proceed.

The steps to reproduce this issue are as follows:

Try to install perseus-cli on windows 10.

A minimum reproducible example is available at <>.

Tribble internal data dHJpYmJsZS1yZXBvcnRlZCxDLWJ1ZyxBLWNsaQ==
lukechu10 commented 2 months ago

A temporary fix should be to use cargo install perseus-cli --locked instead. This will make sure to use the dependencies as specified in the lockfile instead of using the latest Semantic versioning compatible crates.

laloutre87 commented 2 months ago

Nice workaround. Works well.

arctic-hen7 commented 2 months ago

Will cut a new release fairly soon, pinning this for now to help others!