# 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"
rust-version = "1.88"
name = "near-cli-rs"
version = "0.26.0"
authors = [
    "FroVolod <frol_off@meta.ua>",
    "Near Inc <hello@nearprotocol.com>",
]
build = false
exclude = ["docs/media"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "human-friendly console utility that helps to interact with NEAR Protocol from command line."
homepage = "https://near.cli.rs"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/near/near-cli-rs"

[package.metadata.wix]
upgrade-guid = "A6432354-8256-45E3-9E10-53C117EE22B4"
path-guid = "3A5A99B6-61EC-4DFB-AA36-763EE316AF18"
license = false
eula = false

[features]
default = [
    "ledger",
    "ledger-ble",
    "self-update",
    "inspect_contract",
    "verify_contract",
]
inspect_contract = ["dep:near-verify-rs"]
ledger = ["near-ledger"]
ledger-ble = [
    "near-ledger/ble",
    "ledger",
]
self-update = [
    "self_update",
    "semver",
]
verify_contract = [
    "dep:near-verify-rs",
    "dep:camino",
    "dep:git2",
    "dep:tempfile",
]

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

[[bin]]
name = "near"
path = "src/main.rs"

[[test]]
name = "account"
path = "tests/account.rs"

[[test]]
name = "construct_transaction"
path = "tests/construct_transaction.rs"

[[test]]
name = "find_network_where_account_exist"
path = "tests/find_network_where_account_exist.rs"

[[test]]
name = "state_init_inspect"
path = "tests/state_init_inspect.rs"

[[test]]
name = "tokens"
path = "tests/tokens.rs"

[dependencies.bip39]
version = "2.0.0"
features = ["rand"]

[dependencies.borsh]
version = "1.5.7"

[dependencies.bs58]
version = "0.5"

[dependencies.bytesize]
version = "1.1.0"

[dependencies.camino]
version = "1.1.1"
optional = true

[dependencies.cargo-util]
version = "0.2"

[dependencies.color-eyre]
version = "0.6"

[dependencies.derive_more]
version = "2"

[dependencies.dirs]
version = "6"

[dependencies.easy-ext]
version = "1"

[dependencies.ed25519-dalek]
version = "2"
default-features = false

[dependencies.fast_clap]
version = "4.5.57"
features = [
    "derive",
    "unstable-v5",
]

[dependencies.futures]
version = "0.3"

[dependencies.git2]
version = "0.19"
optional = true

[dependencies.hex]
version = "0.4.2"
features = ["serde"]

[dependencies.indenter]
version = "0.3"

[dependencies.inquire]
version = "0.9.3"

[dependencies.interactive-clap]
version = "0.3"

[dependencies.interactive-clap-derive]
version = "0.3"

[dependencies.keyring]
version = "3.0.5"
features = [
    "apple-native",
    "windows-native",
    "sync-secret-service",
    "vendored",
]

[dependencies.linked-hash-map]
version = "0.5"
features = ["serde_impl"]

[dependencies.near-abi]
version = "0.4.2"

[dependencies.near-crypto]
version = "0.35"

[dependencies.near-gas]
version = "0.3"
features = [
    "serde",
    "borsh",
    "interactive-clap",
]

[dependencies.near-jsonrpc-client]
version = "0.21"
features = ["any"]

[dependencies.near-jsonrpc-primitives]
version = "0.35"

[dependencies.near-ledger]
version = "0.9.3"
optional = true

[dependencies.near-parameters]
version = "0.35"

[dependencies.near-primitives]
version = "0.35"

[dependencies.near-slip10]
version = "0.4.7"

[dependencies.near-socialdb-client]
version = "0.15"

[dependencies.near-token]
version = "0.3"
features = [
    "serde",
    "borsh",
    "interactive-clap",
]

[dependencies.near-verify-rs]
version = "0.3.0"
optional = true

[dependencies.open]
version = "5"

[dependencies.openssl]
version = "0.10"
features = ["vendored"]

[dependencies.prettytable]
version = "0.10.0"

[dependencies.reqwest]
version = "0.12"
features = [
    "blocking",
    "json",
]

[dependencies.rust_decimal]
version = "1.35.0"

[dependencies.self_update]
version = "0.42"
features = [
    "archive-tar",
    "compression-flate2",
]
optional = true

[dependencies.semver]
version = "1.0.4"
optional = true

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.serde_json]
version = "1.0.57"

[dependencies.serde_with]
version = "3.12.0"

[dependencies.shell-words]
version = "1"

[dependencies.shellexpand]
version = "3"

[dependencies.smart-default]
version = "0.7.1"

[dependencies.strum]
version = "0.24"
features = ["derive"]

[dependencies.strum_macros]
version = "0.24"

[dependencies.tempfile]
version = "3.10.1"
optional = true

[dependencies.textwrap]
version = "0.16.1"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1.0"
features = [
    "rt-multi-thread",
    "macros",
]
default-features = false

[dependencies.toml]
version = "0.8"

[dependencies.tracing]
version = "0.1.40"

[dependencies.tracing-indicatif]
version = "0.3.6"

[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]

[dependencies.url]
version = "2"
features = ["serde"]

[dependencies.wasmparser]
version = "0.243"

[dependencies.zstd]
version = "0.13"

[dev-dependencies.insta]
version = "1.40"

[dev-dependencies.near-sandbox]
version = "0.3"

[dev-dependencies.regex]
version = "1.10"

[dev-dependencies.tempfile]
version = "3.10.1"

[dev-dependencies.tokio-test]
version = "0.4"

[profile.dist]
lto = "thin"
inherits = "release"
