mln-rs-engine 0.0.19

Part of mln-rs, a Rust port of the MapLibre Native map rendering core. Depend on mln-rs instead.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// Where a [`Loader`](crate::storage::Loader) keeps its cache and finds its assets.
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct ResourceOptions {
    /// The path of the database that caches resources. The default,
    /// `":memory:"`, keeps the cache in memory.
    pub cache_path: String,
    /// The directory that `asset://` URLs load from.
    pub asset_path: String,
}

impl Default for ResourceOptions {
    fn default() -> Self {
        ResourceOptions { cache_path: ":memory:".to_owned(), asset_path: ".".to_owned() }
    }
}