# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "tari_template_lib_types"
version = "0.24.0"
authors = ["The Tari Development Community"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Tari template library types"
readme = "README.md"
license = "BSD-3-Clause"
repository = "https://github.com/tari-project/tari-ootle"
resolver = "2"

[features]
alloc = [
    "serde/alloc",
    "tari_template_abi/alloc",
]
bincode-compat = []
borsh = [
    "dep:borsh",
    "tari_bor/borsh",
    "bnum?/borsh",
]
default = ["std"]
extra-arith = [
    "dep:num-integer",
    "bnum?/numtraits",
]
precision = ["dep:bnum"]
std = [
    "serde/std",
    "tari_template_abi/std",
    "borsh?/std",
    "num-integer?/std",
]
ts = [
    "std",
    "ts-rs",
    "tari_template_abi/ts",
    "tari_bor/ts",
]

[lib]
name = "tari_template_lib_types"
path = "src/lib.rs"

[dependencies.bnum]
version = "0.13.0"
optional = true

[dependencies.borsh]
version = "1.6"
features = ["derive"]
optional = true
default-features = false

[dependencies.num-integer]
version = "0.1.46"
optional = true
default-features = false

[dependencies.serde]
version = "1.0"
features = ["derive"]
default-features = false

[dependencies.tari_bor]
version = "0.13"
default-features = false

[dependencies.tari_template_abi]
version = "0.16"
default-features = false

[dependencies.ts-rs]
version = "11.0"
features = [
    "chrono-impl",
    "no-serde-warnings",
    "indexmap-impl",
]
optional = true

[dev-dependencies.bincode]
version = "2.0.1"
features = ["serde"]

[dev-dependencies.borsh]
version = "1.6"
default-features = false

[dev-dependencies.serde_json]
version = "1.0"

[dev-dependencies.tari_crypto]
version = "0.22"
features = ["borsh"]
