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
| Feature | Forwards to | Notes |
|---|---|---|
| (default) | vecslide-core (default) | WASM-safe; manifest, validation, HTML compilation. |
zip-io | vecslide-core/zip-io | In-memory ZIP read/write — WASM-safe. |
native | vecslide-core/native | std::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
- pack
zip-io - player_
template - pointer
- theme
- DaisyUI theme color extraction and conversion.
- typst_
fonts - typst_
render native - typst_
split - unpack
zip-io - validation
Structs§
- Unpacked
Presentation - Input to the HTML compiler. Contains the already-decoded binary content of a .vecslide.
Enums§
Functions§
- pack_
to_ writer - Packages an
UnpackedPresentationinto a.vecslidearchive written towriter. - unpack_
from_ reader - Reads a
.vecslidearchive from anyRead + Seeksource into memory.