File tree 5 files changed +37
-46
lines changed
5 files changed +37
-46
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ dist: trusty
2
2
sudo : false
3
3
language : rust
4
4
rust :
5
- - 1.12 .0
5
+ - 1.20 .0
6
6
- stable
7
7
- beta
8
8
- nightly
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ by [RE2](https://github.com/google/re2).
11
11
[ ![ Build status] ( https://ci.appveyor.com/api/projects/status/github/rust-lang/regex?svg=true )] ( https://ci.appveyor.com/project/rust-lang-libs/regex )
12
12
[ ![ Coverage Status] ( https://coveralls.io/repos/github/rust-lang/regex/badge.svg?branch=master )] ( https://coveralls.io/github/rust-lang/regex?branch=master )
13
13
[ ![ ] ( http://meritbadge.herokuapp.com/regex )] ( https://crates.io/crates/regex )
14
+ [ ![ Rust] ( https://img.shields.io/badge/rust-1.20%2B-blue.svg?maxAge=3600 )] ( https://github.com/rust-lang/regex )
14
15
15
16
### Documentation
16
17
@@ -210,7 +211,22 @@ recommended for general use.
210
211
211
212
[ Documentation ` regex-syntax ` .] ( https://docs.rs/regex-syntax )
212
213
213
- # License
214
+
215
+ ### Minimum Rust version policy
216
+
217
+ This crate's minimum supported ` rustc ` version is ` 1.20.0 ` .
218
+
219
+ The current ** tentative** policy is that the minimum Rust version required to
220
+ use this crate can be increased in minor version updates. For example, if
221
+ regex 1.0.0 requires Rust 1.20.0, then regex 1.0.z for all values of ` z ` will
222
+ also require Rust 1.20.0 or newer. However, regex 1.y for ` y > 0 ` may require
223
+ a newer minimum version of Rust.
224
+
225
+ In general, this crate will be conservative with respect to the minimum
226
+ supported version of Rust.
227
+
228
+
229
+ ### License
214
230
215
231
This project is licensed under either of
216
232
Original file line number Diff line number Diff line change 8
8
cargo build --verbose
9
9
cargo doc --verbose
10
10
11
- # If we're testing on an older version of Rust, then only check that we
12
- # can build the crate. This is because the dev dependencies might be updated
13
- # more frequently, and therefore might require a newer version of Rust.
14
- #
15
- # This isn't ideal. It's a compromise.
16
- if [ " $TRAVIS_RUST_VERSION " = " 1.12.0" ]; then
17
- exit
18
- fi
19
-
20
11
# Run tests. If we have nightly, then enable our nightly features.
21
12
if [ " $TRAVIS_RUST_VERSION " = " nightly" ]; then
22
13
cargo test --verbose --features unstable
Original file line number Diff line number Diff line change @@ -54,21 +54,13 @@ impl AVX2VectorBuilder {
54
54
}
55
55
}
56
56
57
- // We define our union with a macro so that our code continues to compile on
58
- // Rust 1.12.
59
- macro_rules! defunion {
60
- ( ) => {
61
- #[ derive( Clone , Copy ) ]
62
- #[ allow( non_camel_case_types) ]
63
- pub union u8x32 {
64
- vector: __m256i,
65
- bytes: [ u8 ; 32 ] ,
66
- }
67
- }
57
+ #[ derive( Clone , Copy ) ]
58
+ #[ allow( non_camel_case_types) ]
59
+ pub union u8x32 {
60
+ vector : __m256i ,
61
+ bytes : [ u8 ; 32 ] ,
68
62
}
69
63
70
- defunion ! ( ) ;
71
-
72
64
impl u8x32 {
73
65
#[ inline]
74
66
unsafe fn splat ( n : u8 ) -> u8x32 {
Original file line number Diff line number Diff line change @@ -66,30 +66,22 @@ impl SSSE3VectorBuilder {
66
66
}
67
67
}
68
68
69
- // We define our union with a macro so that our code continues to compile on
70
- // Rust 1.12.
71
- macro_rules! defunion {
72
- ( ) => {
73
- /// A u8x16 is a 128-bit vector with 16 single-byte lanes.
74
- ///
75
- /// It provides a safe API that uses only SSE2 or SSSE3 instructions.
76
- /// The only way for callers to construct a value of this type is
77
- /// through the SSSE3VectorBuilder type, and the only way to get a
78
- /// SSSE3VectorBuilder is if the `ssse3` target feature is enabled.
79
- ///
80
- /// Note that generally speaking, all uses of this type should get
81
- /// inlined, otherwise you probably have a performance bug.
82
- #[ derive( Clone , Copy ) ]
83
- #[ allow( non_camel_case_types) ]
84
- pub union u8x16 {
85
- vector: __m128i,
86
- bytes: [ u8 ; 16 ] ,
87
- }
88
- }
69
+ /// A u8x16 is a 128-bit vector with 16 single-byte lanes.
70
+ ///
71
+ /// It provides a safe API that uses only SSE2 or SSSE3 instructions.
72
+ /// The only way for callers to construct a value of this type is
73
+ /// through the SSSE3VectorBuilder type, and the only way to get a
74
+ /// SSSE3VectorBuilder is if the `ssse3` target feature is enabled.
75
+ ///
76
+ /// Note that generally speaking, all uses of this type should get
77
+ /// inlined, otherwise you probably have a performance bug.
78
+ #[ derive( Clone , Copy ) ]
79
+ #[ allow( non_camel_case_types) ]
80
+ pub union u8x16 {
81
+ vector : __m128i ,
82
+ bytes : [ u8 ; 16 ] ,
89
83
}
90
84
91
- defunion ! ( ) ;
92
-
93
85
impl u8x16 {
94
86
#[ inline]
95
87
unsafe fn splat ( n : u8 ) -> u8x16 {
You can’t perform that action at this time.
0 commit comments