From 0eeafb2eea2bb686bce1eaf02060dccbc2c14552 Mon Sep 17 00:00:00 2001 From: Corey Richardson Date: Mon, 2 May 2016 14:39:11 +1000 Subject: Enable usage in no_std contexts --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index d92b434..5640f3e 100644 --- a/README.md +++ b/README.md @@ -47,3 +47,13 @@ let mut rdr = Cursor::new(vec![2, 5, 3, 0]); assert_eq!(517, rdr.read_u16::().unwrap()); assert_eq!(768, rdr.read_u16::().unwrap()); ``` + +### `no_std` crates + +This crate has a feature, `std`, that is enabled by default. To use this crate +in a `no_std` context, add the following to your `Cargo.toml`: + +```toml +[dependencies] +byteorder = { version = "0.5", default-features = false } +``` -- cgit v1.2.3