From d20e3f69e19901bc97889ee8686f61253f87449f Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Sat, 3 Mar 2018 08:51:14 -0700 Subject: [PATCH] no_std --- fcntl/src/lib.rs | 4 +++- src/lib.rs | 2 ++ unistd/src/lib.rs | 4 +++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/fcntl/src/lib.rs b/fcntl/src/lib.rs index 95bea1c378..71c5787159 100644 --- a/fcntl/src/lib.rs +++ b/fcntl/src/lib.rs @@ -1,4 +1,6 @@ -/// fcntl implementation for Redox, following http://pubs.opengroup.org/onlinepubs/7908799/xsh/fcntl.h.html +//! fcntl implementation for Redox, following http://pubs.opengroup.org/onlinepubs/7908799/xsh/fcntl.h.html + +#![no_std] extern crate libc; diff --git a/src/lib.rs b/src/lib.rs index 866bc824b8..4e4e661e2f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,5 @@ +#![no_std] + extern crate fcntl; extern crate unistd; diff --git a/unistd/src/lib.rs b/unistd/src/lib.rs index 77ed2553a9..d85c672379 100644 --- a/unistd/src/lib.rs +++ b/unistd/src/lib.rs @@ -1,4 +1,6 @@ -/// unistd implementation for Redox, following http://pubs.opengroup.org/onlinepubs/7908799/xsh/unistd.h.html +//! unistd implementation for Redox, following http://pubs.opengroup.org/onlinepubs/7908799/xsh/unistd.h.html + +#![no_std] extern crate libc;