omp-core
omp-core provides shared, low-level data structures and encoding utilities used by omp. Its public API includes append-only storage, compact string and byte types, sparse collections, and binary-to-text encodings.
Structure
append_vecimplements the thread-safe, segmentedAppendVecand its borrowedAppendSliceviews.cow_bytesprovidesCowBytes, a borrowed-or-Bytesbyte container with cheap owned clones and zero-copy slicing.encodingcontains generic base-N machinery and the public hex, Base32, Base32-Hex, Base32-DNS, Base64, and URL-safe Base64 interfaces.strprovides immutable and mutable small-string types, clone-on-write strings, formatting helpers, and conversions.sparse_index,sparse_map, andsparse_setimplement the indexing machinery and public sparse map and set collections.
The crate root re-exports the principal collection, string, byte, and encoding types so callers usually do not need to depend on module layout.
Philosophy
The implementations favor predictable, allocation-conscious primitives for frequently used infrastructure. Short strings stay inline, owned bytes remain cheaply shareable, append-only storage grows in segmented buckets, and encoding supports fixed-size and streaming forms. Specialized representations are kept behind conventional collection, iterator, conversion, and Serde interfaces so callers can use these optimizations without carrying their internal bookkeeping.