phil-opp / blog_os

Writing an OS in Rust

Home Page:http://os.phil-opp.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cargo bootimage failing

KilroyWasHere-cs-j opened this issue · comments

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"

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

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

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