From b6af7c5ac01e4a546500dd92fcd0e14c4e1020ce Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Fri, 17 Jul 2020 10:03:03 +0200 Subject: [PATCH] Enable rlibc dependency only with `binary` feature It is not needed for the library. --- Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 7b96b89a..c03a5d67 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +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" +rlibc = { version = "1.0.0", optional = true } [dependencies.font8x8] version = "0.2.4" @@ -32,7 +32,7 @@ toml = { version = "0.5.1", optional = true } [features] default = [] -binary = ["xmas-elf", "x86_64", "usize_conversions", "fixedvec", "llvm-tools", "toml"] +binary = ["xmas-elf", "x86_64", "usize_conversions", "fixedvec", "llvm-tools", "toml", "rlibc"] vga_320x200 = ["font8x8"] recursive_page_table = [] map_physical_memory = []