mirror of
https://github.com/typst/typst
synced 2025-05-15 01:25:28 +08:00
14 lines
357 B
Rust
14 lines
357 B
Rust
use typst_kit::package::PackageStorage;
|
|
|
|
use crate::args::PackageStorageArgs;
|
|
use crate::download;
|
|
|
|
/// Returns a new package storage for the given args.
|
|
pub fn storage(args: &PackageStorageArgs) -> PackageStorage {
|
|
PackageStorage::new(
|
|
args.package_cache_path.clone(),
|
|
args.package_path.clone(),
|
|
download::downloader(),
|
|
)
|
|
}
|