Skip to main content

Crate rdocx_opc

Crate rdocx_opc 

Source
Expand description

§rdocx-opc

rdocx-opc is a deprecated compatibility shim for the shared oxml-opc package layer. Existing code can keep its old imports while migrating.

§Use it when

Use this crate only while migrating an existing rdocx-opc dependency. New code should depend on oxml-opc directly.

§Relationship

The retained types are exact re-exports. Word-specific package construction belongs in the high-level rdocx facade.

§Example

use rdocx_opc::OpcPackage;

let package = OpcPackage::new();
assert!(package.parts.is_empty());
[dependencies]
rdocx-opc = "0.6"

For new code, replace both the dependency and the import with oxml-opc and oxml_opc.

Modules§

content_types
Parsing and writing of [Content_Types].xml.
relationship
Parsing and writing of .rels relationship files.

Structs§

ContentTypes
Parsed [Content_Types].xml.
OpcPackage
An in-memory representation of an OPC package (ZIP archive).
PackagePart
A single part within the OPC package.
Relationship
A single relationship entry.
Relationships
A collection of relationships parsed from a .rels file.

Enums§

ContentType
A single content type entry, either a Default by extension or an Override by part name.
OpcError