Expand description
Encoding and decoding codecs for COBOL data types.
This crate provides the encoding/decoding logic for COBOL record layouts, including character set conversion, numeric codecs, and record framing.
Re-exports§
pub use runtime as memory;pub use iterator::RecordIterator;pub use iterator::iter_records;pub use iterator::iter_records_from_file;pub use lib_api::MAX_CAPTURED_FAILURES;pub use lib_api::RecordFailure;pub use lib_api::RunSummary;pub use lib_api::decode_file_to_jsonl;pub use lib_api::decode_record;pub use lib_api::decode_record_with_scratch;pub use lib_api::encode_jsonl_to_file;pub use lib_api::encode_record;pub use numeric::SmallDecimal;pub use numeric::ZonedEncodingInfo;pub use options::CodecOptionKind;pub use options::DecodeOptions;pub use options::EncodeOptions;pub use options::FloatFormat;pub use options::JsonNumberMode;pub use options::ParseCodecOptionError;pub use options::RawMode;pub use options::RecordFormat;pub use options::ZonedEncodingFormat;pub use determinism::ByteDiff;pub use determinism::DeterminismMode;pub use determinism::DeterminismResult;pub use determinism::check_decode_determinism;pub use determinism::check_encode_determinism;pub use determinism::check_round_trip_determinism;
Modules§
- charset
- Character set conversion between EBCDIC codepages and UTF-8. Character set conversion utilities
- determinism
- Determinism validation for decode, encode, and round-trip operations. Determinism validation for COBOL copybook encoding and decoding operations.
- edited_
pic - Edited PIC (numeric editing) decode and encode support. Edited PIC (Phase E2 + E3) decode and encode support
- file
- Schema-aware file framing integration. Schema-aware file processing integration.
- iterator
- Streaming record iterator for file-level decoding. Record iterator for streaming access to decoded records
- lib_api
- Core library API: record decode/encode and file-level processing. Core decode / encode API for COBOL binary data.
- numeric
- Numeric field decoding and encoding (zoned decimal, packed decimal, binary).
- options
- Configuration types: codepage, record format, JSON modes, raw capture. Configuration option types owned by the codec runtime.
- record
- Record-level binary decode/encode logic. Record framing facade.
- runtime
- Codec-owned runtime support for scratch buffers, streaming, and workers. Codec-owned runtime support for bounded, reusable record processing.
- zoned_
overpunch - Zoned decimal overpunch character handling. Zoned decimal overpunch API.
Enums§
- Codepage
- Codepage identifier for EBCDIC/ASCII character encoding. Character encoding specification supported by copybook-rs.
- Unmappable
Policy - Policy for handling unmappable characters during codepage conversion. Policy for handling characters that have no mapping.
Constants§
- JSON_
SCHEMA_ VERSION - Stable JSONL schema identifier for decoder output.