Skip to content

Commit

Permalink
doc: note the new unstable feature
Browse files Browse the repository at this point in the history
  • Loading branch information
BurntSushi committed Mar 13, 2018
1 parent 04e2930 commit 27ed3fa
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,16 @@ assert!(!matches.matched(5));
assert!(matches.matched(6));
```

### Usage: enable SIMD optimizations

This crate provides an `unstable` feature that can only be enabled on nightly
Rust. When this feature is enabled, the regex crate will use SIMD optimizations
if your CPU supports them. No additional compile time flags are required; the
regex crate will detect your CPU support at runtime.

When `std::arch` becomes stable, then these optimizations will be enabled
automatically.


### Usage: a regular expression parser

Expand Down

0 comments on commit 27ed3fa

Please sign in to comment.