Skip to content

Commit 75d48fc

Browse files
committed
Use weak dependencies
1 parent daef5cc commit 75d48fc

File tree

5 files changed

+21
-11
lines changed

5 files changed

+21
-11
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ jobs:
245245
with: {submodules: true}
246246
- name: Install Rust
247247
uses: actions-rs/toolchain@v1
248-
with: {toolchain: 1.51, profile: minimal, override: true}
248+
with: {toolchain: 1.60, profile: minimal, override: true}
249249
- name: Build and test all crates
250250
run:
251251
cargo test --workspace -vv --features=hdf5-sys/static --exclude=hdf5-derive

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
### Changed
1313

1414
- The `H5Type` derive macro now uses `proc-macro-error` to emit error messages.
15+
- Features have been reworked to use the new dependency resolution. This bumps MSRV.
16+
- MSRV is increased to 1.60.
1517

1618
### Fixed
1719

Cargo.toml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,14 @@ categories = ["science", "filesystem"]
1414

1515
[features]
1616
default = []
17-
mpio = ["mpi-sys", "hdf5-sys/mpio"]
18-
lzf = ["lzf-sys", "errno"]
19-
blosc = ["blosc-sys"]
17+
mpio = ["dep:mpi-sys", "hdf5-sys/mpio"]
18+
lzf = ["dep:lzf-sys", "dep:errno"]
19+
blosc = ["dep:blosc-sys"]
20+
zlib = ["hdf5-sys/zlib"]
21+
static = ["hdf5-sys/static"]
22+
1_10_or_later = ["hdf5-sys/1_10_or_later"]
23+
1_12_or_later = ["hdf5-sys/1_12_or_later"]
24+
1_13_or_later = ["hdf5-sys/1_13_or_later"]
2025
# The features with version numbers such as 1.10.3, 1.12.0 are metafeatures
2126
# and is only available when the HDF5 library is at least this version.
2227
# Features have_direct and have_parallel are also metafeatures and dependent

hdf5-src/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ exclude = [
3737

3838
[features]
3939
hl = []
40-
zlib = ["libz-sys"]
40+
zlib = ["dep:libz-sys"]
4141
deprecated = []
4242
threadsafe = []
4343
1_10 = []

hdf5-sys/Cargo.toml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,15 @@ hdf5-src = { path = "../hdf5-src", version = "0.8.1", optional = true } # !V
2222
# Please see README for further explanation of these feature flags
2323
[features]
2424
default = []
25-
mpio = ["mpi-sys"]
26-
hl = ["hdf5-src/hl"]
27-
threadsafe = ["hdf5-src/threadsafe"]
28-
zlib = ["libz-sys", "hdf5-src/zlib"]
29-
static = ["hdf5-src"]
30-
deprecated = ["hdf5-src/deprecated"]
25+
mpio = ["dep:mpi-sys"]
26+
hl = ["hdf5-src?/hl"]
27+
threadsafe = ["hdf5-src?/threadsafe"]
28+
zlib = ["dep:libz-sys", "hdf5-src?/zlib"]
29+
static = ["dep:hdf5-src"]
30+
deprecated = ["hdf5-src?/deprecated"]
31+
1_10_or_later = ["hdf5-src?/1_10"]
32+
1_12_or_later = ["hdf5-src?/1_12"]
33+
1_13_or_later = ["hdf5-src?/1_13"]
3134

3235
[build-dependencies]
3336
libloading = "0.7"

0 commit comments

Comments
 (0)