c2pa_warc/lib.rs
1// Copyright 2026 WritersLogic. All rights reserved.
2// Licensed under the Apache License, Version 2.0 or the MIT license,
3// at your option.
4
5//! C2PA manifest embedding for WARC web archive files (ISO 28500).
6//!
7//! Stores the C2PA Manifest Store as a WARC record of a dedicated
8//! `c2paprovenance` type with `Content-Type: application/c2pa`, as the last
9//! record in the file. A file carries at most one manifest record; updating
10//! removes the existing one and appends the replacement.
11
12mod error;
13mod reader;
14mod record;
15mod writer;
16
17#[cfg(all(feature = "python", not(target_arch = "wasm32")))]
18mod python;
19
20#[cfg(target_arch = "wasm32")]
21mod wasm;
22
23pub use error::Error;
24pub use reader::{read_manifest, read_records};
25pub use record::{build_record, WarcRecord};
26pub use writer::append_manifest;