File tree 3 files changed +33
-0
lines changed
3 files changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -294,6 +294,8 @@ fn main() {
294
294
Version :: new ( 4 , 9 , 0 ) ,
295
295
Version :: new ( 4 , 9 , 1 ) ,
296
296
Version :: new ( 4 , 9 , 2 ) ,
297
+ Version :: new ( 4 , 9 , 3 ) ,
298
+ // Keep this list up to date with netcdf/build.rs
297
299
] ;
298
300
299
301
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
+ Version :: new ( 4 , 9 , 3 ) ,
24
+ // Keep this list up to date with netcdf-sys/build.rs
25
+ ] ;
26
+
27
+ for version in & versions {
28
+ println ! ( "cargo::rustc-check-cfg=cfg(feature, values(\" {version}\" ))" ) ;
29
+ }
30
+
3
31
if std:: env:: var ( "DEP_NETCDF_HAS_MMAP" ) . is_ok ( ) {
4
32
println ! ( "cargo::rustc-cfg=feature=\" has-mmap\" " ) ;
5
33
}
You can’t perform that action at this time.
0 commit comments