Skip to content

Commit b1ffae4

Browse files
committed
Make this build as a Cargo package.
1 parent 6e1c22d commit b1ffae4

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

src/lib.rs

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,23 @@
1212

1313
//! Operations on ASCII strings and characters
1414
15+
#![feature(macro_rules, globs)]
1516
#![unstable = "unsure about placement and naming"]
1617
#![allow(deprecated)]
1718

18-
use core::kinds::Sized;
19-
use fmt;
20-
use iter::IteratorExt;
21-
use mem;
22-
use option::{Option, Some, None};
23-
use slice::{SlicePrelude, AsSlice};
24-
use str::{Str, StrPrelude};
25-
use string::{String, IntoString};
26-
use vec::Vec;
19+
// FIXME: Work around std::ascii traits being in the prelude
20+
#![no_implicit_prelude]
21+
22+
use std::kinds::Sized;
23+
use std::fmt;
24+
use std::mem;
25+
use std::iter::IteratorExt;
26+
use std::option::{Option, Some, None};
27+
use std::slice::{SlicePrelude, AsSlice};
28+
use std::str::{Str, StrPrelude};
29+
use std::string::{String, IntoString};
30+
use std::vec::Vec;
31+
2732

2833
/// Datatype to hold one ascii character. It wraps a `u8`, with the highest bit always zero.
2934
#[deriving(Clone, PartialEq, PartialOrd, Ord, Eq, Hash)]
@@ -626,10 +631,9 @@ static ASCII_UPPER_MAP: [u8, ..256] = [
626631

627632
#[cfg(test)]
628633
mod tests {
629-
use prelude::*;
634+
use std::prelude::*;
630635
use super::*;
631-
use char::from_u32;
632-
use str::StrPrelude;
636+
use std::char::from_u32;
633637

634638
macro_rules! v2ascii (
635639
( [$($e:expr),*]) => (&[$(Ascii{chr:$e}),*]);

0 commit comments

Comments
 (0)