add a dependency to cargo-miri-test

This commit is contained in:
David Renshaw 2017-06-29 13:59:47 -04:00
parent e3fa4fb849
commit 7a755ce8f9
3 changed files with 18 additions and 1 deletions

View File

@ -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"

View File

@ -4,3 +4,4 @@ version = "0.1.0"
authors = ["Oliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>"]
[dependencies]
byteorder = "1.0"

View File

@ -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 = <BigEndian as ByteOrder>::read_u32(buf);
assert_eq!(n, 0x01020304);
}