From 7a755ce8f948ebacb0157a1213d9dc4039f87807 Mon Sep 17 00:00:00 2001 From: David Renshaw Date: Thu, 29 Jun 2017 13:59:47 -0400 Subject: [PATCH] add a dependency to cargo-miri-test --- cargo-miri-test/Cargo.lock | 10 ++++++++++ cargo-miri-test/Cargo.toml | 1 + cargo-miri-test/src/main.rs | 8 +++++++- 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/cargo-miri-test/Cargo.lock b/cargo-miri-test/Cargo.lock index a62bb86226cdb..8b2387fa64109 100644 --- a/cargo-miri-test/Cargo.lock +++ b/cargo-miri-test/Cargo.lock @@ -1,4 +1,14 @@ [root] name = "cargo-miri-test" version = "0.1.0" +dependencies = [ + "byteorder 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", +] +[[package]] +name = "byteorder" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[metadata] +"checksum byteorder 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c40977b0ee6b9885c9013cd41d9feffdd22deb3bb4dc3a71d901cc7a77de18c8" diff --git a/cargo-miri-test/Cargo.toml b/cargo-miri-test/Cargo.toml index 29886d99a394b..5fbe923f23d3b 100644 --- a/cargo-miri-test/Cargo.toml +++ b/cargo-miri-test/Cargo.toml @@ -4,3 +4,4 @@ version = "0.1.0" authors = ["Oliver Schneider "] [dependencies] +byteorder = "1.0" \ No newline at end of file diff --git a/cargo-miri-test/src/main.rs b/cargo-miri-test/src/main.rs index aa00ab84cb096..07b0e4cee4e5c 100644 --- a/cargo-miri-test/src/main.rs +++ b/cargo-miri-test/src/main.rs @@ -1,3 +1,9 @@ +extern crate byteorder; + +use byteorder::{BigEndian, ByteOrder}; + fn main() { - assert_eq!(5, 5); + let buf = &[1,2,3,4]; + let n = ::read_u32(buf); + assert_eq!(n, 0x01020304); }