phil-opp / blog_os

Writing an OS in Rust
http://os.phil-opp.com
Apache License 2.0
15.58k stars 1.07k forks source link

cargo bootimage failing #1241

Closed KilroyWasHere-cs-j closed 11 months ago

KilroyWasHere-cs-j commented 1 year ago

Running "cargo bootimage" yields this error : "error: could not compile serde (lib) due to 5097 previous errors"

rustc version -- rustc 1.74.0-nightly (c469197b1 2023-08-22) bootimage = "0.10.3"

AtomicGamer9523 commented 1 year ago

You seem to be using rust edition 2018, change it to 2021 and try again

nskobelevs commented 11 months ago

Could be related to #1236 Using bootimage version 0.9 fixed the massive errors I was getting (with 2021 edition)

phil-opp commented 11 months ago

Yeah, the second edition of the blog only works with bootloader v0.9.