File tree 6 files changed +14
-6
lines changed
6 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ src/.DS_Store
77
77
/doc /arena
78
78
/doc /extra
79
79
/doc /flate
80
+ /doc /glob
80
81
/doc /green
81
82
/doc /native
82
83
/doc /rustc
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ li {list-style-type: none; }
39
39
40
40
* [ The ` arena ` allocation library] ( arena/index.html )
41
41
* [ The ` flate ` compression library] ( flate/index.html )
42
+ * [ The ` glob ` file path matching library] ( glob/index.html )
42
43
43
44
# Tooling
44
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 arena
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
@@ -65,6 +65,7 @@ DEPS_rustdoc := rustc native:sundown
65
65
DEPS_rustpkg := rustc
66
66
DEPS_flate := std native:miniz
67
67
DEPS_arena := std extra
68
+ DEPS_glob := std
68
69
69
70
TOOL_DEPS_compiletest := extra green rustuv
70
71
TOOL_DEPS_rustpkg := rustpkg green rustuv
Original file line number Diff line number Diff line change @@ -67,7 +67,6 @@ 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
72
pub mod base64;
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 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} ;
You can’t perform that action at this time.
0 commit comments