29 lines
522 B
Markdown
29 lines
522 B
Markdown
# rustyhdf5-derive
|
|
|
|
[](https://crates.io/crates/rustyhdf5-derive)
|
|
[](https://docs.rs/rustyhdf5-derive)
|
|
|
|
Derive macros for rustyhdf5 HDF5 traits.
|
|
|
|
## Features
|
|
|
|
- `#[derive(HDF5Type)]` for automatic HDF5 datatype mapping
|
|
- Struct-to-compound-type derivation
|
|
|
|
## Usage
|
|
|
|
```rust
|
|
use rustyhdf5_derive::HDF5Type;
|
|
|
|
#[derive(HDF5Type)]
|
|
struct Point {
|
|
x: f64,
|
|
y: f64,
|
|
z: f64,
|
|
}
|
|
```
|
|
|
|
## License
|
|
|
|
MIT
|