File tree 4 files changed +32
-1
lines changed
4 files changed +32
-1
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ jobs:
118
118
- {os: ubuntu-latest, rust: stable}
119
119
- {os: windows-latest, rust: stable-msvc}
120
120
- {os: windows-latest, rust: stable-gnu}
121
- - {os: macos-11 , rust: stable}
121
+ - {os: macos-12 , rust: stable}
122
122
- {os: macos-latest, rust: stable}
123
123
defaults :
124
124
run :
Original file line number Diff line number Diff line change @@ -294,6 +294,7 @@ fn main() {
294
294
Version :: new ( 4 , 9 , 0 ) ,
295
295
Version :: new ( 4 , 9 , 1 ) ,
296
296
Version :: new ( 4 , 9 , 2 ) ,
297
+ // Keep this list up to date with netcdf/build.rs
297
298
] ;
298
299
299
300
for version in & versions {
Original file line number Diff line number Diff line change @@ -35,6 +35,9 @@ mpi-sys = { workspace = true, optional = true }
35
35
clap = { version = " 4.5.1" , features = [" derive" ] }
36
36
tempfile = " 3.1.0"
37
37
38
+ [build-dependencies ]
39
+ semver = " 1.0.23"
40
+
38
41
[package .metadata .docs .rs ]
39
42
features = [" static" ]
40
43
rustdoc-args = [" --cfg" , " docsrs" ]
Original file line number Diff line number Diff line change
1
+ use semver:: Version ;
2
+
1
3
fn main ( ) {
2
4
println ! ( "cargo::rustc-check-cfg=cfg(feature, values(\" has-mmap\" ))" ) ;
5
+ let versions = [
6
+ Version :: new ( 4 , 4 , 0 ) ,
7
+ Version :: new ( 4 , 4 , 1 ) ,
8
+ Version :: new ( 4 , 5 , 0 ) ,
9
+ Version :: new ( 4 , 6 , 0 ) ,
10
+ Version :: new ( 4 , 6 , 1 ) ,
11
+ Version :: new ( 4 , 6 , 2 ) ,
12
+ Version :: new ( 4 , 6 , 3 ) ,
13
+ Version :: new ( 4 , 7 , 0 ) ,
14
+ Version :: new ( 4 , 7 , 1 ) ,
15
+ Version :: new ( 4 , 7 , 2 ) ,
16
+ Version :: new ( 4 , 7 , 3 ) ,
17
+ Version :: new ( 4 , 7 , 4 ) ,
18
+ Version :: new ( 4 , 8 , 0 ) ,
19
+ Version :: new ( 4 , 8 , 1 ) ,
20
+ Version :: new ( 4 , 9 , 0 ) ,
21
+ Version :: new ( 4 , 9 , 1 ) ,
22
+ Version :: new ( 4 , 9 , 2 ) ,
23
+ // Keep this list up to date with netcdf-sys/build.rs
24
+ ] ;
25
+
26
+ for version in & versions {
27
+ println ! ( "cargo::rustc-check-cfg=cfg(feature, values(\" {version}\" ))" ) ;
28
+ }
29
+
3
30
if std:: env:: var ( "DEP_NETCDF_HAS_MMAP" ) . is_ok ( ) {
4
31
println ! ( "cargo::rustc-cfg=feature=\" has-mmap\" " ) ;
5
32
}
You can’t perform that action at this time.
0 commit comments