Crates.io | tari_template_lib |
lib.rs | tari_template_lib |
version | 0.12.3 |
created_at | 2023-11-22 08:42:35.401811+00 |
updated_at | 2025-07-14 12:58:40.659587+00 |
description | Tari template library provides abstrations that interface with the Tari validator engine |
homepage | |
repository | https://github.com/tari-project/tari-ootle |
max_upload_size | |
id | 1044981 |
size | 274,455 |
tari_template_lib
tari_template_lib
provides ergonomic abstractions that allow WASM templates to interact with the Tari Ootle engine.
Most if not all Ootle templates written in rust should depend on this crate.
In most cases, you will only require the prelude
which can be included with:
use tari_template_lib::prelude::*;
Typically, a template author will use structs exported from the [models] module, the
ResourceBuilder and the ComponentBuilder. This crate
re-exports low-level ABI functions in tari_template_abi
and the tari_template_macros
proc macro.
no_std can be enabled using the no_std
feature flag.
Detailed documentation is available at docs.rs/tari_template_lib.