artushak-web-assets 0.2.1

Asset file manager
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::path::PathBuf;

use serde::{Deserialize, Serialize};

/// Asset paths configuration.
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)]
pub struct AssetConfig {
    /// Directory to copy public assets to.
    pub target_directory_path: PathBuf,
    /// Internal asset storage (should be persistent between pack runs to avoid re-running filter every time).
    pub internal_directory_path: PathBuf,
    /// Directory to get asset sources from.
    pub source_directory_path: PathBuf,
}