phil-opp / blog_os

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

Edition-3 Post 2 (booting): profiles for the non root package will be ignored #1314

Open a-usr opened 2 months ago

a-usr commented 2 months ago

In the post about booting it is suggested create a new workspace member for the kernel by moving the src forder and the cargo.toml to a new "kernel" folder, before adding said folder into a new cargo.toml's workspace field. However cargo will Ignore the the profiles inside kernel/cargo.toml, as suggested by this warning from cargo check:

warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package:   [Path]\kernel\Cargo.toml
workspace: [Path]\Cargo.toml