We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b8addfa + b573c78 commit 0d7baabCopy full SHA for 0d7baab
.travis.yml
@@ -76,13 +76,18 @@ before_install:
76
brew update >/dev/null;
77
brew tap homebrew/science;
78
brew install hdf5@${H5_BREW};
79
+ # https://github.com/laumann/compiletest-rs/issues/179
80
+ export DYLD_LIBRARY_PATH="/usr/lib:/usr/local/lib";
81
+ brew unlink jpeg giflib libpng libtiff
82
fi
83
- |
84
if [ ! -z "$H5_CONDA" ]; then
85
if [ `uname` = "Darwin" ]; then
86
wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh;
87
# note: this is only required for older HDF5 installations on OS X
88
export DYLD_FALLBACK_LIBRARY_PATH="$HOME/miniconda/envs/testenv/lib";
89
90
+ export DYLD_LIBRARY_PATH="$HOME/miniconda/envs/testenv/lib";
91
else
92
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
93
Cargo.toml
@@ -20,10 +20,10 @@ members = ["hdf5-types", "hdf5-derive", "hdf5-sys"]
20
exclude = ["*.yml", "ci/*"]
21
22
[dependencies]
23
-bitflags = "1.0"
+bitflags = "1.1"
24
lazy_static = "1.3"
25
libc = "0.2"
26
-parking_lot = "0.7"
+parking_lot = "0.8"
27
ndarray = "0.12"
28
num-integer = "0.1"
29
num-traits = "0.2"
@@ -34,7 +34,7 @@ hdf5-derive = { path = "hdf5-derive", version = "0.5.1" }
34
35
[dev-dependencies]
36
mashup = "0.1"
37
-rand = "0.6"
+rand = { version = "0.7", features = ["small_rng"] }
38
regex = "1.1"
39
scopeguard = "1.0"
40
tempdir = "0.3"
appveyor.yml
@@ -12,7 +12,7 @@ init:
12
13
environment:
14
matrix:
15
- - CHANNEL: 1.32.0
+ - CHANNEL: 1.36.0
16
H5_VERSION: 1.8.21
17
H5_SOURCE: msi
18
- CHANNEL: beta
hdf5-derive/Cargo.toml
@@ -18,5 +18,5 @@ quote = "0.6"
syn = { version = "0.15", features = ["derive", "extra-traits"]}
19
-compiletest_rs = { version = "0.3.18", features = ["stable"] }
+compiletest_rs = { version = "0.3.22", features = ["stable"] }
hdf5 = { version = ">=0.5", path = ".." }
hdf5-derive/src/lib.rs
@@ -9,8 +9,8 @@ use std::str::FromStr;
9
use proc_macro2::{Ident, Span, TokenStream};
10
use quote::{quote, ToTokens};
11
use syn::{
- parse_macro_input, AttrStyle, Attribute, Data, DeriveInput, Expr, Fields, Meta, NestedMeta,
- Type, TypeGenerics, TypePath,
+ parse_macro_input, AttrStyle, Attribute, Data, DeriveInput, Expr, Fields, Index,
+ Meta, NestedMeta, Type, TypeGenerics, TypePath,
};
#[proc_macro_derive(H5Type)]
@@ -146,11 +146,12 @@ fn impl_trait(
146
impl_compound(ty, ty_generics, &fields, &names, &types)
147
}
148
Fields::Unnamed(ref fields) => {
149
- let (index, fields): (Vec<usize>, Vec<_>) = fields
+ let (index, fields): (Vec<Index>, Vec<_>) = fields
150
.unnamed
151
.iter()
152
.enumerate()
153
.filter(|&(_, f)| !is_phantom_data(&f.ty))
154
+ .map(|(i, f)| (Index::from(i), f))
155
.unzip();
156
if fields.is_empty() {
157
panic!("Cannot derive H5Type for empty tuple structs");
0 commit comments