Skip to content

Commit

Permalink
Update for new nightly (hits rust-lang/rust#53813 on macOS though)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemo157 committed Sep 5, 2018
1 parent a763897 commit 5dc06b6
Show file tree
Hide file tree
Showing 23 changed files with 29 additions and 41 deletions.
5 changes: 0 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,3 @@ members = [
]

default-members = ["embrio"]

# https://github.com/japaric/bare-metal/pull/10
[patch.crates-io.bare-metal]
git = "https://github.com/Nemo157/bare-metal"
branch = "remove-old-feature"
2 changes: 1 addition & 1 deletion embrio-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ authors = ["Wim Looman <wim@nemo157.com>"]
edition = "2018"

[dependencies.futures-core-preview]
git = "https://github.com/rust-lang-nursery/futures-rs"
version = "0.3.0-alpha.5"
default-features = false
2 changes: 1 addition & 1 deletion embrio-core/src/io/buf_read.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use core::mem::PinMut;
use core::pin::PinMut;

use super::Read;

Expand Down
2 changes: 1 addition & 1 deletion embrio-core/src/io/cursor.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use core::cmp;
use core::fmt;
use core::marker::Unpin;
use core::mem::PinMut;
use core::pin::PinMut;

use futures_core::{task, Poll};

Expand Down
2 changes: 1 addition & 1 deletion embrio-core/src/io/read.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use core::cmp;
use core::fmt::Debug;
use core::mem::PinMut;
use core::pin::PinMut;

use futures_core::{task, Poll};

Expand Down
2 changes: 1 addition & 1 deletion embrio-core/src/io/void.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use core::mem::PinMut;
use core::pin::PinMut;
use crate::io::Write;
use futures_core::{task, Poll};

Expand Down
2 changes: 1 addition & 1 deletion embrio-core/src/io/write.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use core::fmt::Debug;
use core::{cmp, mem, mem::PinMut};
use core::{cmp, mem, pin::PinMut};

use futures_core::{task, Poll};

Expand Down
9 changes: 5 additions & 4 deletions embrio-executor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@ version = "0.1.0"
authors = ["Wim Looman <wim@nemo157.com>"]
edition = "2018"

[dependencies]
pin-utils = { version = "0.1.0-alpha.1", default-features = false }
[dependencies.pin-utils]
version = "0.1.0-alpha.2"
default-features = false

[dependencies.futures-core-preview]
git = "https://github.com/rust-lang-nursery/futures-rs"
version = "0.3.0-alpha.5"
default-features = false

[dependencies.futures-util-preview]
git = "https://github.com/rust-lang-nursery/futures-rs"
version = "0.3.0-alpha.5"
default-features = false
features = ["nightly"]

Expand Down
2 changes: 1 addition & 1 deletion embrio-native/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ edition = "2018"
embrio-core = { path = "../embrio-core" }

[dependencies.futures-core-preview]
git = "https://github.com/rust-lang-nursery/futures-rs"
version = "0.3.0-alpha.5"
default-features = false
2 changes: 1 addition & 1 deletion embrio-native/src/io.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::io as stdio;
use std::marker::Unpin;
use std::mem::PinMut;
use std::pin::PinMut;
use embrio_core::io as embrio;
use futures_core::{task, Poll};

Expand Down
2 changes: 1 addition & 1 deletion embrio-native/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![feature(arbitrary_self_types, catch_expr, futures_api, pin)]
#![feature(arbitrary_self_types, futures_api, pin)]

use embrio_core::io::{Read, Write};

Expand Down
14 changes: 3 additions & 11 deletions embrio-nrf51/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ authors = ["Wim Looman <wim@nemo157.com>"]
edition = "2018"

[dependencies]
cortex-m = "0.5.3"
cortex-m = "0.5.6"
nrf51 = "0.5.0"

[dependencies.embrio-core]
Expand All @@ -17,18 +17,10 @@ path = "../embrio-core"
path = "../embrio-executor"

[dependencies.futures-core-preview]
git = "https://github.com/rust-lang-nursery/futures-rs"
version = "0.3.0-alpha.5"
default-features = false

[dependencies.futures-util-preview]
git = "https://github.com/rust-lang-nursery/futures-rs"
version = "0.3.0-alpha.5"
default-features = false
features = ["nightly"]

[features]
default = []

# https://github.com/japaric/bare-metal/pull/10
[patch.crates-io.bare-metal]
git = "https://github.com/Nemo157/bare-metal"
branch = "remove-old-feature"
2 changes: 1 addition & 1 deletion embrio-nrf51/src/timer/timer0.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use core::{mem::PinMut, time::Duration, cell::RefCell};
use core::{pin::PinMut, time::Duration, cell::RefCell};
use futures_core::{task::{self, Poll, Waker}, future::Future, stream::Stream};
use nrf51::{TIMER0, Interrupt};
use cortex_m::{peripheral::NVIC, interrupt::{free, Mutex}};
Expand Down
2 changes: 1 addition & 1 deletion embrio-nrf51/src/timer/timer1.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use core::{mem::PinMut, time::Duration, cell::RefCell};
use core::{pin::PinMut, time::Duration, cell::RefCell};
use futures_core::{task::{self, Poll, Waker}, future::Future, stream::Stream};
use nrf51::{TIMER1, Interrupt};
use cortex_m::{peripheral::NVIC, interrupt::{free, Mutex}};
Expand Down
2 changes: 1 addition & 1 deletion embrio-nrf51/src/uart.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use core::{cmp, mem::PinMut, cell::RefCell, marker::PhantomData};
use core::{cmp, pin::PinMut, cell::RefCell, marker::PhantomData};
use futures_core::task::{self, Poll, Waker};
use embrio_core::io;
use cortex_m::{peripheral::NVIC, interrupt::{free, Mutex}};
Expand Down
4 changes: 2 additions & 2 deletions embrio-util/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ embrio-core = { path = "../embrio-core" }
memchr = { version = "2.0.1", default-features = false }

[dependencies.futures-core-preview]
git = "https://github.com/rust-lang-nursery/futures-rs"
version = "0.3.0-alpha.5"
default-features = false

[dependencies.futures-util-preview]
git = "https://github.com/rust-lang-nursery/futures-rs"
version = "0.3.0-alpha.5"
default-features = false
features = ["nightly"]

Expand Down
2 changes: 1 addition & 1 deletion embrio-util/src/io/buf_reader.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use core::mem::PinMut;
use core::pin::PinMut;

use futures_core::task::{self, Poll};
use futures_util::ready;
Expand Down
2 changes: 1 addition & 1 deletion embrio-util/src/io/close.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use core::mem::PinMut;
use core::pin::PinMut;

use futures_core::future::Future;
use futures_util::future::poll_fn;
Expand Down
2 changes: 1 addition & 1 deletion embrio-util/src/io/flush.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use core::mem::PinMut;
use core::pin::PinMut;

use futures_core::future::Future;
use futures_util::future::poll_fn;
Expand Down
2 changes: 1 addition & 1 deletion embrio-util/src/io/read_exact.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use core::mem::PinMut;
use core::pin::PinMut;

use futures_core::future::Future;
use futures_core::task::Poll;
Expand Down
2 changes: 1 addition & 1 deletion embrio-util/src/io/read_until.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use core::cmp;
use core::mem::PinMut;
use core::pin::PinMut;

use futures_core::future::Future;
use futures_core::task::Poll;
Expand Down
2 changes: 1 addition & 1 deletion embrio-util/src/io/write_all.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use core::mem::PinMut;
use core::pin::PinMut;

use futures_core::future::Future;
use futures_core::task::Poll;
Expand Down
2 changes: 1 addition & 1 deletion examples/apps/hello/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
pin,
)]

use core::{future::Future, task::{self, Poll}, ptr::NonNull, mem::PinMut, ops::{Generator, GeneratorState}, cell::UnsafeCell};
use core::{future::Future, task::{self, Poll}, ptr::NonNull, pin::PinMut, ops::{Generator, GeneratorState}, cell::UnsafeCell};
use embrio::io::{self, Read, Write, BufReader};
use pin_utils::pin_mut;

Expand Down

0 comments on commit 5dc06b6

Please sign in to comment.