Thanks to visit codestin.com
Credit goes to lib.rs

#template-engine #tari #lib #abi #model #proc-macro #abstrations

no-std tari_template_lib

Tari template library provides abstrations that interface with the Tari validator engine

10 releases (6 breaking)

0.14.0 Sep 30, 2025
0.13.0 Sep 25, 2025
0.12.3 Jul 14, 2025
0.11.1 Jul 2, 2025
0.1.0 Nov 22, 2023

#3 in #tari

Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App

693 downloads per month

BSD-3-Clause

450KB
8K SLoC

tari_template_lib

Overview

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.

Template Examples

no_std

no_std can be enabled using the no_std feature flag.

Documentation

Detailed documentation is available at docs.rs/tari_template_lib.

Dependencies

~1.7–3MB
~62K SLoC