Skip to main content

Crate copybook

Crate copybook 

Source
Expand description

§copybook

copybook is the canonical crates.io entrypoint for the copybook-rs project.

copybook-rs is an existing Rust crate family for COBOL copybook and mainframe data tooling. The component crates remain available for users who want narrow dependencies. This root crate provides a convenient facade over the public component crates.

§Facade Modules

The facade keeps the public surface module-shaped and explicit:

use copybook::codec;
use copybook::core;
use copybook::error;

Each module re-exports the corresponding published component crate. All paths are task/domain-shaped; the 0.5 retired paths (overflow, utils) and the 0.6 compatibility aliases were removed in 0.7. The docs/migration/ guides record each window:

ModuleComponent crateStatus
charsetcopybook-charsetpreferred
codeccopybook-codecpreferred
corecopybook-corepreferred
errorcopybook-errorpreferred
framingcopybook-fixedpreferred (fixed-length records)
framingcopybook-rdwpreferred (RDW records)
governancecopybook-governanceadapter (selected)
support_matrixcopybook-support-matrixcontract (selected)

Retired 0.5 paths (overflow, utils) are gone: their behavior moved to the owning crates under #655, and the 0.5.0 artifacts stay on crates.io.

Use the component crates directly when you need the smallest possible dependency surface. Use copybook when you want the canonical project entrypoint and a single dependency over the public crate family.

Use copybook::charset for character conversion and copybook::codec::options for codec operation options. Record framing lives under copybook::framing (fixed, rdw). The installation example below uses the currently published 0.6 release.

Add copybook in your Cargo.toml:

[dependencies]
copybook = "0.8"

Modules§

charset
Character set conversion utilities for EBCDIC and ASCII data.
codec
High-level record encode/decode workflows.
core
COBOL copybook parsing, schema, and validation primitives.
error
Error types and taxonomy.
framing
Record framing primitives: fixed-length and RDW framing.
governance
Governance interoperability contracts (single-crate surface since #656 Phase F).
support_matrix
COBOL feature support matrix contracts.