Skip to content

Fast compile isn't working for me (Windows) #2630

Answered by HotSammiches
HotSammiches asked this question in Q&A
Discussion options

You must be logged in to vote

I finally figured it out. There were two things:

  1. I had misread some of the setup section (RTFM)
  2. There appears to be a known issue with rustflags = ["-Zshare-generics=y"] in the config.toml suggested by the Bevy book

For 1 - It would be really helpful to people like me who skim and think they know what the book is saying to include a quick folder diagram showing something like:

|-.cargo
|  |- config.toml
|- src
|  |- main.rs
|- Cargo.toml
|- rust-toolchain

For 2 - The repo should also change the config.toml file to disable share-generics in Windows (e.g. changing the line in the file to be rustflags = ["-Zshare-generics=n"]. It appears others have had this problem too and found this sol…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by HotSammiches
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant