ic-query 0.5.24

Internet Computer query library for NNS, SNS, ICRC, and related public network metadata
Documentation
# 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.91.0"
name = "ic-query"
version = "0.5.24"
authors = ["borovan <84897664+borovan@users.noreply.github.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Internet Computer query library for NNS, SNS, ICRC, and related public network metadata"
homepage = "https://github.com/dragginzgame/ic-query"
documentation = "https://docs.rs/ic-query"
readme = "README.md"
keywords = [
    "internet-computer",
    "dfinity",
    "icp",
    "nns",
    "sns",
]
categories = ["command-line-utilities"]
license = "MIT"
repository = "https://github.com/dragginzgame/ic-query"

[features]
cli = [
    "host",
    "dep:clap",
]
default = []
host = [
    "dep:futures",
    "dep:ic-agent",
    "dep:tokio",
]

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

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

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

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

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

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

[dependencies.candid]
version = "0.10"
default-features = false

[dependencies.clap]
version = "4.6.1"
features = ["derive"]
optional = true

[dependencies.futures]
version = "0.3"
optional = true

[dependencies.ic-agent]
version = "0.47.3"
optional = true
default-features = false

[dependencies.prost]
version = "0.14.3"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sha2]
version = "0.10.9"

[dependencies.thiserror]
version = "2.0"

[dependencies.time]
version = "=0.3.47"
default-features = false

[dependencies.tokio]
version = "1.52.3"
features = ["rt"]
optional = true

[lints.clippy]
doc_markdown = "allow"
empty_line_after_doc_comments = "allow"
missing_const_for_fn = "warn"
missing_errors_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "warn"
needless_pass_by_value = "allow"
redundant_clone = "warn"
semicolon_if_nothing_returned = "warn"
struct_field_names = "allow"
uninlined_format_args = "warn"
use_self = "warn"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.clippy.nursery]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1