Skip to content

Commit

Permalink
Merge pull request #125 from rust-osdev/Zbuild-std
Browse files Browse the repository at this point in the history
Make bootloader buildable with `-Zbuild-std`
  • Loading branch information
phil-opp committed Jul 17, 2020
2 parents b263840 + 874fe6e commit 64e36dd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ x86_64 = { version = "0.11.0", optional = true }
usize_conversions = { version = "0.2.0", optional = true }
fixedvec = { version = "0.2.4", optional = true }
bit_field = { version = "0.10.0", optional = true }
rlibc = "1.0.0"

[dependencies.font8x8]
version = "0.2.4"
Expand Down Expand Up @@ -47,6 +48,7 @@ debug = true

[package.metadata.bootloader]
target = "x86_64-bootloader.json"
build-std = "core"

[package.metadata.docs.rs]
features = [ "recursive_page_table", "map_physical_memory" ]
Expand Down
2 changes: 2 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#[cfg(not(target_os = "none"))]
compile_error!("The bootloader crate must be compiled for the `x86_64-bootloader.json` target");

extern crate rlibc;

use bootloader::bootinfo::{BootInfo, FrameRange};
use core::convert::TryInto;
use core::panic::PanicInfo;
Expand Down

0 comments on commit 64e36dd

Please sign in to comment.