From f2d2c476f3eb88ef13b0ef74f0f8b4b20a9b25ad Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Fri, 20 Jul 2018 10:50:11 +0200 Subject: [PATCH] The bootloader_precompiled crate should be in lib.rs --- blog/content/second-edition/posts/05-integration-tests/index.md | 1 + src/lib.rs | 1 + src/main.rs | 1 - 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/blog/content/second-edition/posts/05-integration-tests/index.md b/blog/content/second-edition/posts/05-integration-tests/index.md index 194db11c..1f239efe 100644 --- a/blog/content/second-edition/posts/05-integration-tests/index.md +++ b/blog/content/second-edition/posts/05-integration-tests/index.md @@ -374,6 +374,7 @@ Cargo supports hybrid projects that are both a library and a binary. We only nee #![no_std] // don't link the Rust standard library +extern crate bootloader_precompiled; extern crate spin; extern crate volatile; #[macro_use] diff --git a/src/lib.rs b/src/lib.rs index e2905e51..86ef1bc1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,5 +1,6 @@ #![no_std] // don't link the Rust standard library +extern crate bootloader_precompiled; extern crate spin; extern crate volatile; #[macro_use] diff --git a/src/main.rs b/src/main.rs index 8cfe8bbc..9b56c433 100644 --- a/src/main.rs +++ b/src/main.rs @@ -9,7 +9,6 @@ extern crate blog_os; extern crate x86_64; #[macro_use] extern crate lazy_static; -extern crate bootloader_precompiled; use core::panic::PanicInfo;