From febc53b74cf7a22ac7c156765b15c654464c90eb Mon Sep 17 00:00:00 2001 From: Tobias Humig Date: Fri, 26 Jun 2026 13:36:39 +0200 Subject: [PATCH] feat(file): make Footer::new public MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Everything needed to write a Vortex file without the bundled `VortexWriteOptions::write` driver is already public — the `SegmentSink` trait, `accumulate_stats`, `FileStatistics`, `FooterSerializer`, etc. — except constructing the `Footer` itself. Expose `Footer::new` so code that drives the layout/segment-write pipeline directly (e.g. a custom `LayoutStrategy` with its own `SegmentSink`) can build a file entirely on the public API instead of forking the crate. Signed-off-by: Tobias Humig --- vortex-file/src/footer/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vortex-file/src/footer/mod.rs b/vortex-file/src/footer/mod.rs index c5de627482a..32c82d4966e 100644 --- a/vortex-file/src/footer/mod.rs +++ b/vortex-file/src/footer/mod.rs @@ -50,7 +50,7 @@ pub struct Footer { } impl Footer { - pub(crate) fn new( + pub fn new( root_layout: LayoutRef, segments: Arc<[SegmentSpec]>, statistics: Option,