feat(figcraft-format): define document expansion policy

This commit is contained in:
Dylan M. Taylor committed 2026-11-13 07:03:35 +00:00
1 parent e8628c526e
commit 68189d1e6e
1 file changed
+6
+6
View File
@@ -365,6 +365,12 @@ mod seek_archive_tests {
/// Largest individual ZIP member read by the native format.
pub const MAX_MEMBER: u64 = 512 * 1024 * 1024;
/// The document expansion ratio that its compressed size may claim.
pub const DOCUMENT_RATIO: u64 = 16;
#[cfg(not(target_pointer_width = "32"))]
pub const MAX_DOCUMENT: u64 = 4 * 1024 * 1024 * 1024;
#[cfg(target_pointer_width = "32")]
pub const MAX_DOCUMENT: u64 = 1024 * 1024 * 1024;
/// Most version snapshots kept on save and read on open.
pub const MAX_VERSIONS: usize = 100;
/// Maximum version and branch name lengths, in Unicode scalar values.