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
247 downloads per month
Used in 25 crates
(15 directly)
335KB
7K
SLoC
This crate contains types that are used across the Tari Template ecosystem.
This includes:
- Substate address types (e.g.
ComponentAddress,ResourceAddress,NonFungibleAddressetc.) - Auth and access rules (e.g.
AccessRule,OwnerRule) - a 128-bit unsigned
Amounttype and a 192-bit signedPrecisionAmounttype (if theprecisionfeature is enabled) - stealth crypto types and traits (e.g.
EncryptedData,StealthTransferStatementetc.) - various utility types and traits (e.g.
Metadata,Hash,MaxBytes,MaxStringetc.)
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
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