Skip to content

Commit

Permalink
Add #![no_std] (#8)
Browse files Browse the repository at this point in the history
I would like to use this crate in a #![no_std] program

It doesn't depend on the standard library, so it appears this can safely be
added.
  • Loading branch information
tarcieri authored and droundy committed Jan 14, 2017
1 parent 5dc38f7 commit 0330fcb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
//! # }
//! ```
#![deny(warnings)]
#![no_std]

#[cfg(test)]
#[macro_use]
extern crate std;

/// You can use `array_ref` to generate an array reference to a subset
/// of a sliceable bit of data (which could be an array, or a slice,
Expand Down Expand Up @@ -227,6 +232,8 @@ mod test {

extern crate quickcheck;

use std::vec::Vec;

// use super::*;

#[test]
Expand Down

0 comments on commit 0330fcb

Please sign in to comment.