diff --git a/.cargo/config.toml b/.cargo/config.toml index 2f9647c1..d4172593 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,5 +1,6 @@ [unstable] build-std = ["core", "compiler_builtins"] +build-std-features = ["compiler-builtins-mem"] [build] target = "x86_64-blog_os.json" diff --git a/Cargo.lock b/Cargo.lock index 378a6614..f2df6c3f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6,7 +6,6 @@ version = "0.1.0" dependencies = [ "bootloader", "lazy_static", - "rlibc", "spin", "volatile", ] @@ -26,12 +25,6 @@ dependencies = [ "spin", ] -[[package]] -name = "rlibc" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc874b127765f014d792f16763a81245ab80500e2ad921ed4ee9e82481ee08fe" - [[package]] name = "spin" version = "0.5.2" diff --git a/Cargo.toml b/Cargo.toml index ae122d77..b407428e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,6 @@ edition = "2018" [dependencies] bootloader = "0.9.8" -rlibc = "1.0.0" volatile = "0.2.6" spin = "0.5.2" diff --git a/src/main.rs b/src/main.rs index 4251b2d9..18e03650 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,8 +1,6 @@ #![no_std] #![no_main] -extern crate rlibc; - use core::panic::PanicInfo; mod vga_buffer;