voxj-codec 0.1.0

Encodes voxj types into .voxj / .voxjz documents.
Documentation
1
2
3
4
5
6
7
8
use crate::{to_voxj_file_bytes, wrap_voxjz};
use voxj::VoxjSerdeFile;

/// Serializes `file` to a `.voxjz` zip archive holding one compact `.voxj`
/// member.
pub fn to_voxjz_file_bytes(file: &VoxjSerdeFile) -> serde_json::Result<Vec<u8>> {
    Ok(wrap_voxjz(&to_voxj_file_bytes(file)?))
}