From 775e8154e7151eb1576d65df539c4ac1612595c6 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 9 Jul 2017 10:19:19 -0700 Subject: [PATCH] Fix libc dependency in no_std test --- test_suite/no_std/Cargo.toml | 1 + test_suite/no_std/src/main.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/test_suite/no_std/Cargo.toml b/test_suite/no_std/Cargo.toml index caef3d1c..80bb6ed2 100644 --- a/test_suite/no_std/Cargo.toml +++ b/test_suite/no_std/Cargo.toml @@ -4,5 +4,6 @@ version = "0.0.0" publish = false [dependencies] +libc = { version = "0.2", default-features = false } serde = { path = "../../serde", default-features = false } serde_derive = { path = "../../serde_derive" } diff --git a/test_suite/no_std/src/main.rs b/test_suite/no_std/src/main.rs index a4469819..a95b62ee 100644 --- a/test_suite/no_std/src/main.rs +++ b/test_suite/no_std/src/main.rs @@ -1,4 +1,4 @@ -#![feature(lang_items, start, libc, compiler_builtins_lib)] +#![feature(lang_items, start, compiler_builtins_lib)] #![no_std] extern crate libc;