assetpack-core 0.3.0

Content-addressed asset packing, chunking, recipe, and SQLite storage primitives.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::sync::Arc;

use crate::file_transform::{FileTransform, FileTransformConfig};

#[derive(Clone, Copy)]
pub struct TransformSpec {
  pub id: u16,
  pub name: &'static str,
  pub selectable: bool,
  pub use_quick_check: bool,
  pub enabled: fn(&FileTransformConfig) -> bool,
  pub build: fn(&FileTransformConfig) -> Arc<dyn FileTransform>,
}