utz_encode/lib.rs
1//! The μTZ encoder crate covers everything between loaded features and a
2//! `.utz` container: shared-arc topology and simplification (topo),
3//! quantization, the grid prefilter (grid), and the delta+varint container
4//! serializer with its generic-compression codecs (encode).
5//!
6//! The crate was split out of `utz_build` so it compiles for
7//! wasm32-unknown-unknown: the webdist viewer runs this exact pipeline live
8//! for size stats (the wasm surface lives in `utz_viz`).
9//! Everything here is pure Rust with no filesystem or network access; the
10//! one C-backed codec (zstd) sits behind the `zstd` cargo feature.
11
12#![cfg_attr(docsrs, feature(doc_cfg))]
13
14mod error;
15pub use error::{Error, Result};
16
17mod types;
18pub use types::*;
19
20pub mod clean;
21pub mod encode;
22pub mod grid;
23pub mod topo;
24pub mod validate;