typwriter 0.14.27

A Rust library for compiling, formatting, and watching Typst documents, with PDF metadata and permission management.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::path::PathBuf;

use download::downloader;
use typst_kit::package::PackageStorage;

use crate::download;

/// Returns a new package storage for the given args.
pub fn storage(
    package_path: &Option<PathBuf>,
    package_cache_path: &Option<PathBuf>,
) -> PackageStorage {
    PackageStorage::new(package_cache_path.clone(), package_path.clone(), downloader())
}