Skip to content

bootloader dependency has not the right format: No package.metadata.bootloader.target key found in Cargo.toml of bootloader #270

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
saivishwak opened this issue Oct 8, 2022 · 6 comments

Comments

@saivishwak
Copy link

Finished dev [unoptimized + debuginfo] target(s) in 4.80s
Error: An error occured while trying to build the bootloader: The bootloader dependency has not the right format: No package.metadata.bootloader.target key found in Cargo.toml of bootloader

(If you're using the official bootloader crate, you need at least version 0.5.1)

Caused by:
The bootloader dependency has not the right format: No package.metadata.bootloader.target key found in Cargo.toml of bootloader

(If you're using the official bootloader crate, you need at least version 0.5.1)
@saivishwak
Copy link
Author

With latest rust nightly the issue is seen.

@bjorn3
Copy link
Contributor

bjorn3 commented Oct 8, 2022

Can you post the Cargo.toml file you are using?

@saivishwak
Copy link
Author

[package]
name = "rob_os"
version = "0.1.0"
edition = "2021"

[dependencies]
bootloader = "0.10.13"

[package.metadata.bootimage]
build-command = ["build"]

@bjorn3
Copy link
Contributor

bjorn3 commented Oct 8, 2022

If you are following https://os.phil-opp.com you will have to use bootloader version 0.9, not 0.10.

@saivishwak
Copy link
Author

Oh Okay, Thanks a lot. Was getting a linker error in 0.9.8 in latest nightly so switched to 0.10.13.

@phil-opp
Copy link
Member

See #271 for details on that linker error. It's a regression in Rust and should be resolved in a few days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants