hdf5 0.3.1

The package provides an interface to HDF5.
docs.rs failed to build hdf5-0.3.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: hdf5-0.8.1

HDF5 Version Status

The package provides an interface to HDF5. Currently the package is only capable of writing/encoding; the reading/decoding functionality is yet to be implemented.

Documentation

Example

extern crate hdf5;

use hdf5::File;

let path = "data.h5";
let file = File::new(path).unwrap();

file.write("foo", 42).unwrap();
file.write("bar", &vec![42.0, 69.0]).unwrap();

Structural data can be written using rustc-serialize as follows:

extern crate hdf5;
extern crate rustc_serialize;

use hdf5::File;

#[derive(RustcEncodable)]
struct Foo {
    bar: Vec<f64>,
    baz: Baz,
}

#[derive(RustcEncodable)]
struct Baz {
    qux: f64,
}

let foo = Foo {
    bar: vec![42.0],
    baz: Baz {
        qux: 69.0,
    },
};

let path = "data.h5";
let file = File::new(path).unwrap();

file.encode("foo", &foo).unwrap();

Contributing

  1. Fork the project.
  2. Implement your idea.
  3. Open a pull request.