Skip to main content

Crate vecslide

Crate vecslide 

Source
Expand description

§vecslide

Facade crate for the .vecslide vector-presentation format. This crate re-exports the entire public API of vecslide-core under a shorter name so downstream users can write vecslide::manifest::Presentation instead of vecslide_core::manifest::Presentation.

Both crates are released in lockstep at the same version — pick whichever import path you prefer.

§Feature flags

FeatureForwards toNotes
(default)vecslide-core (default)WASM-safe; manifest, validation, HTML compilation.
zip-iovecslide-core/zip-ioIn-memory ZIP read/write — WASM-safe.
nativevecslide-core/nativestd::fs + Typst compilation. Not for WASM builds.

§Example

use vecslide::manifest::Presentation;

let yaml = r#"
title: "Cell Anatomy"
slides:
  - id: slide_01
    time_start: 0
    svg_file: vector_assets/01.svg
"#;
let p: Presentation = serde_norway::from_str(yaml)?;
assert_eq!(p.slides.len(), 1);

Modules§

compile_html
error
manifest
packzip-io
player_template
pointer
theme
DaisyUI theme color extraction and conversion.
typst_fonts
typst_rendernative
typst_split
unpackzip-io
validation

Structs§

UnpackedPresentation
Input to the HTML compiler. Contains the already-decoded binary content of a .vecslide.

Enums§

VecslideError

Functions§

pack_to_writer
Packages an UnpackedPresentation into a .vecslide archive written to writer.
unpack_from_reader
Reads a .vecslide archive from any Read + Seek source into memory.