The HDF5 standard supports storing partial blocks of data called chunks. Typically, if the dataset is too large to fit into memory at once, you can write to your file one chunk at a time, and read the data file in the same fashion.
The Rust HDF5 library also supports chunking. See this code example.