@@ -22,7 +22,7 @@ used by adding `regex` to your dependencies in your project's `Cargo.toml`.
22
22
regex = "1"
23
23
```
24
24
25
- and this to your crate root:
25
+ If you're using Rust 2015, then you'll also need to add it to your crate root:
26
26
27
27
```rust
28
28
extern crate regex;
@@ -511,8 +511,8 @@ another matching engine with fixed memory requirements.
511
511
#![ cfg_attr( test, deny( warnings) ) ]
512
512
#![ cfg_attr( feature = "pattern" , feature( pattern) ) ]
513
513
514
- #[ cfg( not( feature = "use_std " ) ) ]
515
- compile_error ! ( "`use_std ` feature is currently required to build this crate" ) ;
514
+ #[ cfg( not( feature = "std " ) ) ]
515
+ compile_error ! ( "`std ` feature is currently required to build this crate" ) ;
516
516
517
517
extern crate aho_corasick;
518
518
extern crate memchr;
@@ -527,16 +527,16 @@ extern crate regex_syntax as syntax;
527
527
#[ cfg( test) ]
528
528
doc_comment:: doctest!( "../README.md" ) ;
529
529
530
- #[ cfg( feature = "use_std " ) ]
530
+ #[ cfg( feature = "std " ) ]
531
531
pub use error:: Error ;
532
- #[ cfg( feature = "use_std " ) ]
532
+ #[ cfg( feature = "std " ) ]
533
533
pub use re_builder:: set_unicode:: * ;
534
- #[ cfg( feature = "use_std " ) ]
534
+ #[ cfg( feature = "std " ) ]
535
535
pub use re_builder:: unicode:: * ;
536
- #[ cfg( feature = "use_std " ) ]
536
+ #[ cfg( feature = "std " ) ]
537
537
pub use re_set:: unicode:: * ;
538
- #[ cfg( feature = "use_std " ) ]
539
- #[ cfg( feature = "use_std " ) ]
538
+ #[ cfg( feature = "std " ) ]
539
+ #[ cfg( feature = "std " ) ]
540
540
pub use re_unicode:: {
541
541
escape, CaptureLocations , CaptureMatches , CaptureNames , Captures ,
542
542
Locations , Match , Matches , NoExpand , Regex , Replacer , ReplacerRef , Split ,
@@ -630,7 +630,7 @@ When the `s` flag is enabled, `.` matches any byte.
630
630
In general, one should expect performance on `&[u8]` to be roughly similar to
631
631
performance on `&str`.
632
632
*/
633
- #[ cfg( feature = "use_std " ) ]
633
+ #[ cfg( feature = "std " ) ]
634
634
pub mod bytes {
635
635
pub use re_builder:: bytes:: * ;
636
636
pub use re_builder:: set_bytes:: * ;
@@ -663,7 +663,7 @@ mod utf8;
663
663
/// testing different matching engines and supporting the `regex-debug` CLI
664
664
/// utility.
665
665
#[ doc( hidden) ]
666
- #[ cfg( feature = "use_std " ) ]
666
+ #[ cfg( feature = "std " ) ]
667
667
pub mod internal {
668
668
pub use compile:: Compiler ;
669
669
pub use exec:: { Exec , ExecBuilder } ;
0 commit comments