diff --git a/Cargo.toml b/Cargo.toml index f16859a..529ca33 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,6 +8,7 @@ keywords = ["embedded", "w5500", "iot", "arm", "embedded-hal-driver"] categories = ["embedded", "hardware-support", "no-std", "network-programming"] license = "MIT OR Apache-2.0" readme = "README.md" +edition = "2018" [dependencies] byteorder = { version = "1.3.2", default-features = false } diff --git a/src/lib.rs b/src/lib.rs index 8a6d8b2..a38966c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,17 +1,13 @@ #![no_std] #![deny(intra_doc_link_resolution_failure)] -extern crate byteorder; -extern crate embedded_hal as hal; - #[macro_use(block)] extern crate nb; -use hal::digital::v2::OutputPin; -use hal::spi::FullDuplex; - use byteorder::BigEndian; use byteorder::ByteOrder; +use embedded_hal::digital::v2::OutputPin; +use embedded_hal::spi::FullDuplex; const COMMAND_READ: u8 = 0x00 << 2; const COMMAND_WRITE: u8 = 0x01 << 2;