Skip to content

Commit 2fcfd75

Browse files
committed
Improve README with cargo instructions
1 parent 17eb9a2 commit 2fcfd75

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,22 @@ glob
44
Support for matching file paths against Unix shell style patterns.
55

66
![[Build Status](https://travis-ci.org/rust-lang/glob.svg?branch=master)](https://travis-ci.org/rust-lang/glob)
7+
8+
## Usage
9+
10+
To use `glob`, add this to your `Cargo.toml`:
11+
12+
```toml
13+
[dependencies.glob]
14+
15+
git = "https://github.com/rust-lang/glob.git"
16+
```
17+
18+
And add this to your crate root:
19+
20+
```rust
21+
#![feature(macro_rules)]
22+
extern crate glob;
23+
use glob::glob;
24+
```
25+

0 commit comments

Comments
 (0)