Skip to content

Commit 7fd5a41

Browse files
committed
no_std only when std feature is not enabled
1 parent 632153d commit 7fd5a41

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

futures-channel/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
#![feature(pin, arbitrary_self_types, futures_api)]
77

8-
#![no_std]
8+
#![cfg_attr(not(feature = "std"), no_std)]
99

1010
#![warn(missing_docs, missing_debug_implementations)]
1111
#![deny(bare_trait_objects)]

futures-core/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
#![feature(pin, arbitrary_self_types, futures_api)]
44

5-
#![no_std]
5+
#![cfg_attr(not(feature = "std"), no_std)]
66

77
#![warn(missing_docs, missing_debug_implementations)]
88
#![deny(bare_trait_objects)]

futures-io/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//! asynchronous analogs to `std::io::{Read, Write}`. The primary difference is
55
//! that these traits integrate with the asynchronous task system.
66
7-
#![no_std]
7+
#![cfg_attr(not(feature = "std"), no_std)]
88

99
#![warn(missing_docs, missing_debug_implementations)]
1010
#![deny(bare_trait_objects)]

futures-sink/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//! This crate contains the `Sink` trait which allows values to be sent
44
//! asynchronously.
55
6-
#![no_std]
6+
#![cfg_attr(not(feature = "std"), no_std)]
77
#![warn(missing_docs, missing_debug_implementations)]
88
#![doc(html_root_url = "https://rust-lang-nursery.github.io/futures-api-docs/0.3.0-alpha.8/futures_sink")]
99

futures/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
2424
#![feature(pin, arbitrary_self_types, futures_api)]
2525

26-
#![no_std]
26+
#![cfg_attr(not(feature = "std"), no_std)]
2727

2828
#![warn(missing_docs, missing_debug_implementations)]
2929
#![deny(bare_trait_objects)]

0 commit comments

Comments
 (0)