Migrate import statements and macros to Rust 2018.
This commit is contained in:
@@ -13,11 +13,9 @@ libfuzzer-sys = { version = "0.3"}
|
||||
arrayref = "0.3.6"
|
||||
libtock_drivers = { path = "../third_party/libtock-drivers" }
|
||||
crypto = { path = "../libraries/crypto", features = ['std'] }
|
||||
cbor = { path = "../libraries/cbor" }
|
||||
|
||||
[dependencies.ctap2]
|
||||
path = ".."
|
||||
features = ['std', 'ram_storage']
|
||||
cbor = { path = "../libraries/cbor", features = ['std'] }
|
||||
ctap2 = { path = "..", features = ['std', 'ram_storage'] }
|
||||
lang_items = { path = "../third_party/lang-items", features = ['std'] }
|
||||
|
||||
# Prevent this from interfering with workspaces
|
||||
[workspace]
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
#![no_main]
|
||||
|
||||
extern crate ctap2;
|
||||
extern crate libtock_drivers;
|
||||
#[macro_use]
|
||||
extern crate arrayref;
|
||||
// This explicit "extern crate" is needed to make the linker aware of the
|
||||
// `libtock_alloc_init` symbol.
|
||||
extern crate lang_items;
|
||||
|
||||
use arrayref::array_ref;
|
||||
use ctap2::ctap::hid::receive::MessageAssembler;
|
||||
use ctap2::ctap::hid::send::HidPacketIterator;
|
||||
use ctap2::ctap::hid::{HidPacket, Message};
|
||||
|
||||
Reference in New Issue
Block a user