linch_docx_rs/lib.rs
1//! # linch-docx-rs
2//!
3//! A reliable DOCX reading and writing library for Rust.
4//!
5//! ## Features
6//!
7//! - Read and write DOCX files
8//! - Round-trip preservation (unknown elements are kept intact)
9//! - Simple, pythonic API inspired by python-docx
10//!
11//! ## Quick Start
12//!
13//! ```rust,ignore
14//! use linch_docx_rs::Document;
15//!
16//! // Open a document
17//! let doc = Document::open("example.docx")?;
18//!
19//! // Read paragraphs
20//! for para in doc.paragraphs() {
21//! println!("{}", para.text());
22//! }
23//!
24//! // Create a new document
25//! let mut doc = Document::new();
26//! doc.add_paragraph("Hello World!");
27//! doc.save("output.docx")?;
28//! ```
29
30pub mod document;
31pub mod error;
32pub mod opc;
33pub mod xml;
34
35pub use document::{Document, Paragraph, Run, Table};
36pub use error::{Error, Result};
37pub use opc::{Package, Part, PartUri};