From 2c237884711e4fe7300e92b6a4acc233688b1eeb Mon Sep 17 00:00:00 2001 From: Robert Habermeier Date: Tue, 6 Feb 2018 12:56:51 +0100 Subject: [PATCH] no_std attributes --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 8cbf255..cf5d72f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -6,6 +6,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#![cfg_attr(not(feature = "std"), no_std)] + #[cfg(feature="libc")] #[doc(hidden)] pub extern crate libc;