violet_crystal 0.1.1

Rust-powered addon development framework for Minecraft Bedrock
Documentation
use askama::Template;

#[derive(Template)]
#[template(path = "bp_manifest.json.jinja2", escape = "none")]
pub struct BpManifestTemplate<'a> {
    pub author: &'a str,
    pub name: &'a str,
    pub description: &'a str,
    pub uuid_1: &'a str,
    pub uuid_2: &'a str,
    pub uuid_3: &'a str,
    pub use_scripts: &'a bool,
    pub server_version: &'a str,
    pub server_ui_version: &'a str,
    pub version: &'a str,
}

#[derive(Template)]
#[template(path = "rp_manifest.json.jinja2", escape = "none")]
pub struct RpManifestTemplate<'a> {
    pub author: &'a str,
    pub name: &'a str,
    pub description: &'a str,
    pub uuid_1: &'a str,
    pub uuid_2: &'a str,
    pub version: &'a str,
}