Skip to main content

c2pa_structured_text/
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 structured text formats.
6//!
7//! Implements the Structured Text Embedding section of the C2PA Technical
8//! Specification, which defines how to associate a C2PA Manifest Store with
9//! source code, configuration files, markup, and other text formats that
10//! support comment syntax or front matter conventions.
11//!
12//! The manifest block uses fixed ASCII armour-style delimiters:
13//! `-----BEGIN C2PA MANIFEST-----` and `-----END C2PA MANIFEST-----`
14
15mod embed;
16mod error;
17mod extract;
18
19pub use embed::{embed_manifest, ManifestRef};
20pub use error::Error;
21pub use extract::{extract_manifest, ExtractionResult};