Expand description
§use-warc
WARC and ARC web archive labels, record kinds, and extension helpers.
This crate is part of the use-archive facade workspace. It exposes web archive primitive labels only. It does not parse WARC records, read ARC files, fetch web content, or extract payloads.
§Example
use use_warc::{WarcFormat, WarcRecordKind, is_warc_filename};
assert!(is_warc_filename("crawl.warc.gz"));
assert_eq!(WarcFormat::Warc.as_str(), "warc");
assert_eq!(WarcRecordKind::Response.as_str(), "response");WARC and ARC web archive labels for RustUse.
Enums§
- Warc
Format - Web archive format labels.
- Warc
Record Kind - WARC record kind labels.
Constants§
- ARC_
EXTENSION - Common ARC extension.
- ARC_
GZIP_ EXTENSION - Common gzip-compressed ARC extension.
- WARC_
EXTENSION - Common WARC extension.
- WARC_
EXTENSIONS - Common WARC/ARC-related extensions.
- WARC_
GZIP_ EXTENSION - Common gzip-compressed WARC extension.
Functions§
- is_
warc_ extension - Returns whether
extensionis a known WARC/ARC extension label. - is_
warc_ filename - Returns whether
namehas a known WARC/ARC filename encoding.