File tree 3 files changed +10
-4
lines changed
3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -273,7 +273,7 @@ jobs:
273
273
with : {submodules: true}
274
274
- name : Install Rust
275
275
uses : dtolnay/rust-toolchain@stable
276
- with : {toolchain: 1.64 }
276
+ with : {toolchain: "1.70" }
277
277
- name : Build and test all crates
278
278
run :
279
279
cargo test --workspace -vv --features=hdf5-sys/static,hdf5-sys/zlib --exclude=hdf5-derive
Original file line number Diff line number Diff line change 16
16
### Changed
17
17
18
18
- The ` H5Type ` derive macro now uses ` proc-macro-error ` to emit error messages.
19
- - MSRV is now ` 1.64 .0 ` and Rust edition has now been bumped to 2021.
19
+ - MSRV is now ` 1.70 .0 ` and Rust edition has now been bumped to 2021.
20
20
- Types in ChunkInfo has been changed to match HDF5.
21
21
- Dependencies now uses the ` dep: ` syntax and are only enabled through features.
22
22
- Some features are made weak and will not enable e.g. static build when asking for a
35
35
- Applying filters without chunking will now produce an explicit error.
36
36
- Fixed a bug where chunking could not be enabled for zero-sized extents.
37
37
- Fixed library finding on Windows with MSYS2-distributed MinGW HDF5.
38
+ - Fixed a bug which made parallel builds unusable.
38
39
39
40
## 0.8.1
40
41
Original file line number Diff line number Diff line change @@ -1440,8 +1440,13 @@ impl FileAccessBuilder {
1440
1440
v. min_raw_perc as _,
1441
1441
) ) ;
1442
1442
}
1443
- if let Some ( v) = self . evict_on_close {
1444
- h5try ! ( H5Pset_evict_on_close ( id, hbool_t:: from( v) ) ) ;
1443
+ if let Some ( evict) = self . evict_on_close {
1444
+ // Issue #259: H5Pset_evict_on_close is not allowed to be called
1445
+ // even if the argument is `false` on e.g. parallel/mpio setups
1446
+ let has_evict_on_close = h5get ! ( H5Pget_evict_on_close ( id) : hbool_t) . map ( |x| x > 0 ) ;
1447
+ if evict != has_evict_on_close. unwrap_or ( false ) {
1448
+ h5try ! ( H5Pset_evict_on_close ( id, hbool_t:: from( evict) ) ) ;
1449
+ }
1445
1450
}
1446
1451
if let Some ( v) = self . mdc_image_config {
1447
1452
let v = v. into ( ) ;
You can’t perform that action at this time.
0 commit comments