Skip to content

Commit d4c3737

Browse files
authored
Merge pull request #90 from aldanor/feature/pub-mod-globals
Make `globals` mod public
2 parents c7114b3 + a448b4e commit d4c3737

29 files changed

+195
-178
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
include:
1313
- name: xenial-stable-conda-1.10.4
1414
dist: xenial
15-
rust: 1.37.0
15+
rust: 1.40.0
1616
env:
1717
- H5_CONDA=1.10.4
1818
- name: xenial-beta-apt-1.8.13

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,17 @@
1414
### Changed
1515

1616
- `h5check!`, `h5lock!`, `h5try!`, `h5call!` and `h5check()` are now public.
17+
- `globals` module containing HDF5 runtime constants is now also public.
1718
- Switch to using 1.0 versions of `syn`, `quote` and `proc-macro2` (which
1819
required a bit of a rewrite of `hdf5-derive`).
1920
- Bump `ascii` to 1.0, update `hdf5-types` to be compatible.
2021
- Bump other dependencies to their latest versions (`parking_lot` to 0.10,
21-
`ndarray` to 0.13, `bitflags` to 1.2, `lazy_static` to 1.4).
22+
`ndarray` to 0.13, `bitflags` to 1.2, `lazy_static` to 1.4,
23+
`libloading` to 0.6, `winreg` to 0.7).
2224
- Remove implementations of deprecated `Error::description()`.
2325
- Switch to `trybuild` instead of `compiletest_rs` for derive-macro testing;
2426
enable full tests (including hdf5-derive) on both AppVeyor and Travis.
25-
- Update the minimum Rust version to 1.37 (because of ndarray).
27+
- Update the minimum Rust version to 1.40 (because of `ndarray` and `libloading`).
2628

2729
### Fixed
2830

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ CI and AppVeyor, HDF5 1.8 and 1.10, system installations and conda environments)
8484
### Rust
8585

8686
`hdf5` crate is tested continuously for all three official release channels, and requires
87-
a modern Rust compiler (e.g. of version 1.37 or later).
87+
a modern Rust compiler (e.g. of version 1.40 or later).
8888

8989
### HDF5
9090

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ init:
1212

1313
environment:
1414
matrix:
15-
- CHANNEL: 1.37.0
15+
- CHANNEL: 1.40.0
1616
H5_VERSION: 1.8.21
1717
H5_SOURCE: msi
1818
- CHANNEL: beta

hdf5-derive/tests/compile-fail/empty-enum.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ use hdf5_derive::H5Type;
55
//~^ ERROR proc-macro derive
66
//~^^ HELP Cannot derive H5Type for empty enums
77
enum Foo {}
8+
9+
fn main() {}

hdf5-derive/tests/compile-fail/empty-struct.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ use hdf5_derive::H5Type;
55
//~^ ERROR proc-macro derive
66
//~^^ HELP Cannot derive H5Type for empty structs
77
struct Foo {}
8+
9+
fn main() {}

hdf5-derive/tests/compile-fail/empty-tuple-struct.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ use hdf5_derive::H5Type;
55
//~^ ERROR proc-macro derive
66
//~^^ HELP Cannot derive H5Type for empty tuple structs
77
struct Foo();
8+
9+
fn main() {}

hdf5-derive/tests/compile-fail/enum-no-repr.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ enum Foo {
88
X = 1,
99
Y = 2,
1010
}
11+
12+
fn main() {}

hdf5-derive/tests/compile-fail/enum-non-scalar.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@ use hdf5_derive::H5Type;
55
//~^ ERROR proc-macro derive
66
//~^^ HELP H5Type can only be derived for enums with scalar discriminants
77
enum Foo {
8-
Bar
8+
Bar,
99
}
10+
11+
fn main() {}

hdf5-derive/tests/compile-fail/pd-empty-struct.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ use std::marker::PhantomData;
99
struct Foo<T> {
1010
t: PhantomData<T>,
1111
}
12+
13+
fn main() {}

0 commit comments

Comments
 (0)