19 releases (breaking)

Uses new Rust 2024

new 0.25.0 Apr 16, 2026
0.23.0 Apr 3, 2026
0.22.0 Mar 24, 2026
0.14.0 Sep 30, 2025
0.12.3 Jul 14, 2025

#636 in Magic Beans

Download history 9/week @ 2026-02-26 31/week @ 2026-03-05 39/week @ 2026-03-12 51/week @ 2026-03-19 65/week @ 2026-03-26 73/week @ 2026-04-02 57/week @ 2026-04-09

247 downloads per month
Used in 25 crates (15 directly)

BSD-3-Clause

335KB
7K SLoC

This crate contains types that are used across the Tari Template ecosystem.

This includes:

  • Substate address types (e.g. ComponentAddress, ResourceAddress, NonFungibleAddress etc.)
  • Auth and access rules (e.g. AccessRule, OwnerRule)
  • a 128-bit unsigned Amount type and a 192-bit signed PrecisionAmount type (if the precision feature is enabled)
  • stealth crypto types and traits (e.g. EncryptedData, StealthTransferStatement etc.)
  • various utility types and traits (e.g. Metadata, Hash, MaxBytes, MaxString etc.)

Include this crate when you need these types but aren't authoring a template (e.g. building a wallet). For template authors, you typically want to use the tari_template_lib crate instead, which re-exports this crate.

no_std is supported by excluding the std feature and enabling the alloc feature.


tari_template_lib_types

Crates.io Documentation

Primitive types shared between tari_template_lib and the host engine. Kept as a separate, no_std-compatible crate so that both the WASM template environment and native tooling can depend on the same definitions without pulling in the full template library.

Dependencies

~1.1–2.8MB
~52K SLoC