diff options
author | M Farkas-Dyck <strake888@gmail.com> | 2017-11-18 18:38:31 -0800 |
---|---|---|
committer | Joe Wilm <jwilm@users.noreply.github.com> | 2017-11-18 18:38:31 -0800 |
commit | 7d71f6a02a4bbd00805c91388f257198c1173912 (patch) | |
tree | 1d23ce6b20147c7775e8ae32c5d6332aabefada0 /utf8parse/src/lib.rs | |
parent | 2be387f7efba8871ad85b5a22fb275323efa462c (diff) | |
download | r-alacritty-vte-7d71f6a02a4bbd00805c91388f257198c1173912.tar.gz r-alacritty-vte-7d71f6a02a4bbd00805c91388f257198c1173912.tar.bz2 r-alacritty-vte-7d71f6a02a4bbd00805c91388f257198c1173912.zip |
no_std (#9)
Diffstat (limited to 'utf8parse/src/lib.rs')
-rw-r--r-- | utf8parse/src/lib.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/utf8parse/src/lib.rs b/utf8parse/src/lib.rs index e75f197..dc4b0fa 100644 --- a/utf8parse/src/lib.rs +++ b/utf8parse/src/lib.rs @@ -3,7 +3,9 @@ //! This module implements a table-driven UTF-8 parser which should //! theoretically contain the minimal number of branches (1). The only branch is //! on the `Action` returned from unpacking a transition. -use std::char; +#![no_std] + +use core::char; mod types; use self::types::{State, Action, unpack}; @@ -94,6 +96,8 @@ impl Parser { #[cfg(test)] mod tests { + extern crate std; + use std::io::Read; use std::fs::File; use Receiver; |