File tree 14 files changed +39
-21
lines changed
14 files changed +39
-21
lines changed Original file line number Diff line number Diff line change @@ -74,8 +74,10 @@ src/.DS_Store
74
74
/doc /html
75
75
/doc /latex
76
76
/doc /std
77
+ /doc /arena
77
78
/doc /extra
78
79
/doc /flate
80
+ /doc /glob
79
81
/doc /green
80
82
/doc /native
81
83
/doc /rustc
Original file line number Diff line number Diff line change @@ -37,7 +37,9 @@ li {list-style-type: none; }
37
37
* [ The Rust parser, ` libsyntax ` ] ( syntax/index.html )
38
38
* [ The Rust compiler, ` librustc ` ] ( rustc/index.html )
39
39
40
+ * [ The ` arena ` allocation library] ( arena/index.html )
40
41
* [ The ` flate ` compression library] ( flate/index.html )
42
+ * [ The ` glob ` file path matching library] ( glob/index.html )
41
43
42
44
# Tooling
43
45
Original file line number Diff line number Diff line change 49
49
# automatically generated for all stage/host/target combinations.
50
50
# ###############################################################################
51
51
52
- TARGET_CRATES := std extra green rustuv native flate
52
+ TARGET_CRATES := std extra green rustuv native flate arena glob
53
53
HOST_CRATES := syntax rustc rustdoc rustpkg
54
54
CRATES := $(TARGET_CRATES ) $(HOST_CRATES )
55
55
TOOLS := compiletest rustpkg rustdoc rustc
@@ -60,10 +60,12 @@ DEPS_green := std
60
60
DEPS_rustuv := std native:uv native:uv_support
61
61
DEPS_native := std
62
62
DEPS_syntax := std extra
63
- DEPS_rustc := syntax native:rustllvm flate
63
+ DEPS_rustc := syntax native:rustllvm flate arena
64
64
DEPS_rustdoc := rustc native:sundown
65
65
DEPS_rustpkg := rustc
66
66
DEPS_flate := std native:miniz
67
+ DEPS_arena := std extra
68
+ DEPS_glob := std
67
69
68
70
TOOL_DEPS_compiletest := extra green rustuv
69
71
TOOL_DEPS_rustpkg := rustpkg green rustuv
Original file line number Diff line number Diff line change 15
15
//! of individual objects while the arena itself is still alive. The benefit
16
16
//! of an arena is very fast allocation; just a pointer bump.
17
17
18
+ #[ crate_id = "arena#0.10-pre" ] ;
19
+ #[ crate_type = "rlib" ] ;
20
+ #[ crate_type = "dylib" ] ;
21
+ #[ license = "MIT/ASL2" ] ;
18
22
#[ allow( missing_doc) ] ;
23
+ #[ feature( managed_boxes) ] ;
19
24
20
- use list:: { List , Cons , Nil } ;
21
- use list;
25
+ extern mod extra;
26
+
27
+ use extra:: list:: { List , Cons , Nil } ;
28
+ use extra:: list;
22
29
23
30
use std:: at_vec;
24
31
use std:: cast:: { transmute, transmute_mut, transmute_mut_region} ;
@@ -493,7 +500,7 @@ impl<T> Drop for TypedArena<T> {
493
500
#[ cfg( test) ]
494
501
mod test {
495
502
use super :: { Arena , TypedArena } ;
496
- use test:: BenchHarness ;
503
+ use extra :: test:: BenchHarness ;
497
504
498
505
struct Point {
499
506
x : int ,
Original file line number Diff line number Diff line change @@ -67,10 +67,8 @@ pub mod ebml;
67
67
pub mod getopts;
68
68
pub mod json;
69
69
pub mod tempfile;
70
- pub mod glob;
71
70
pub mod term;
72
71
pub mod time;
73
- pub mod arena;
74
72
pub mod base64;
75
73
pub mod workcache;
76
74
pub mod enum_set;
Original file line number Diff line number Diff line change 23
23
* `glob`/`fnmatch` functions.
24
24
*/
25
25
26
+ #[ crate_id = "glob#0.10-pre" ] ;
27
+ #[ crate_type = "rlib" ] ;
28
+ #[ crate_type = "dylib" ] ;
29
+ #[ license = "MIT/ASL2" ] ;
30
+
26
31
use std:: { os, path} ;
27
32
use std:: io;
28
33
use std:: io:: fs;
@@ -53,7 +58,7 @@ pub struct Paths {
53
58
/// `puppies.jpg` and `hamsters.gif`:
54
59
///
55
60
/// ```rust
56
- /// use extra:: glob::glob;
61
+ /// use glob::glob;
57
62
///
58
63
/// for path in glob("/media/pictures/*.jpg") {
59
64
/// println!("{}", path.display());
@@ -297,7 +302,7 @@ impl Pattern {
297
302
* # Example
298
303
*
299
304
* ```rust
300
- * use extra:: glob::Pattern;
305
+ * use glob::Pattern;
301
306
*
302
307
* assert!(Pattern::new("c?t").matches("cat"));
303
308
* assert!(Pattern::new("k[!e]tteh").matches("kitteh"));
@@ -537,7 +542,7 @@ impl MatchOptions {
537
542
#[ cfg( test) ]
538
543
mod test {
539
544
use std:: os;
540
- use super :: * ;
545
+ use super :: { glob , Pattern , MatchOptions } ;
541
546
542
547
#[ test]
543
548
fn test_absolute_pattern ( ) {
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ This API is completely unstable and subject to change.
31
31
32
32
extern mod extra;
33
33
extern mod flate;
34
+ extern mod arena;
34
35
extern mod syntax;
35
36
36
37
use back:: link;
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ use util::common::indenter;
68
68
use util:: ppaux:: { Repr , ty_to_str} ;
69
69
use util:: sha2:: Sha256 ;
70
70
71
- use extra :: arena:: TypedArena ;
71
+ use arena:: TypedArena ;
72
72
use extra:: time;
73
73
use std:: c_str:: ToCStr ;
74
74
use std:: cell:: { Cell , RefCell } ;
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ use middle::typeck;
31
31
use util:: ppaux:: Repr ;
32
32
33
33
34
- use extra :: arena:: TypedArena ;
34
+ use arena:: TypedArena ;
35
35
use std:: c_str:: ToCStr ;
36
36
use std:: cast:: transmute;
37
37
use std:: cast;
Original file line number Diff line number Diff line change @@ -193,8 +193,8 @@ represents the "variance transform" as defined in the paper:
193
193
*/
194
194
195
195
use std:: hashmap:: HashMap ;
196
- use extra :: arena;
197
- use extra :: arena:: Arena ;
196
+ use arena;
197
+ use arena:: Arena ;
198
198
use middle:: ty;
199
199
use std:: vec;
200
200
use syntax:: ast;
Original file line number Diff line number Diff line change 9
9
// except according to those terms.
10
10
11
11
extern mod extra;
12
+ extern mod arena;
12
13
13
14
use std:: iter:: range_step;
14
15
use extra:: future:: Future ;
15
- use extra :: arena:: TypedArena ;
16
+ use arena:: TypedArena ;
16
17
17
18
enum Tree < ' a > {
18
19
Nil ,
Original file line number Diff line number Diff line change 12
12
// xfail-win32 TempDir may cause IoError on windows: #10462
13
13
14
14
extern mod extra;
15
+ extern mod glob;
15
16
16
- use extra :: glob:: glob;
17
+ use glob:: glob;
17
18
use extra:: tempfile:: TempDir ;
18
19
use std:: unstable:: finally:: Finally ;
19
20
use std:: { os, unstable} ;
Original file line number Diff line number Diff line change 10
10
// option. This file may not be copied, modified, or distributed
11
11
// except according to those terms.
12
12
13
- extern mod extra ;
14
- use extra :: arena:: Arena ;
13
+ extern mod arena ;
14
+ use arena:: Arena ;
15
15
16
16
pub fn main ( ) {
17
17
let mut arena = Arena :: new ( ) ;
Original file line number Diff line number Diff line change 16
16
// - Multiple lifetime parameters
17
17
// - Arenas
18
18
19
- extern mod extra ;
19
+ extern mod arena ;
20
20
21
- use extra:: arena;
22
- use extra:: arena:: Arena ;
21
+ use arena:: Arena ;
23
22
use std:: hashmap:: HashMap ;
24
23
use std:: cast;
25
24
use std:: libc;
You can’t perform that action at this time.
0 commit comments