ic-query 0.103.1

Internet Computer query library for CloudEngine, NNS, SNS, ICRC, system canisters, and 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.100.0"
name = "ic-query"
version = "0.103.1"
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 CloudEngine, NNS, SNS, ICRC, system canisters, and public network metadata"
documentation = "https://docs.rs/ic-query"
readme = "README.md"
keywords = [
    "internet-computer",
    "dfinity",
    "icp",
    "nns",
    "sns",
]
categories = ["command-line-utilities"]
license-file = "LICENSE.md"
repository = "https://github.com/dragginzgame/ic-query"

[package.metadata.cargo-machete]
ignored = ["toko-tooling"]

[package.metadata.toko-tooling.loc.paths]
"tests/fixtures/governance_probe.rs" = "tests"

[features]
canister = [
    "ic-platform-runtime/cdk",
    "ic-platform/candid-codec",
]
certificate-host = [
    "dep:ic-platform",
    "ic-platform/agent",
    "ic-platform/certification-cbor",
    "ic-platform/certification",
]
cloud-engine-host = [
    "ic-host-tools/agent",
    "ic-platform/agent",
    "ic-platform/candid-codec",
]
cmc-host = [
    "ic-host-tools/agent",
    "certificate-host",
    "ic-platform/agent",
    "ic-platform/candid-codec",
    "ic-platform/cmc-types",
]
dashboard-host = [
    "dep:ic-host-artifacts",
    "dep:ic-host-fs",
    "dep:ic-host-http",
    "dep:reqwest",
]
default = []
host = [
    "cloud-engine-host",
    "cmc-host",
    "dashboard-host",
    "ic-state-host",
    "icrc-host",
    "nns-host",
    "sns-host",
]
ic-state-host = [
    "ic-host-tools/agent",
    "ic-host-tools/encoding",
    "ic-platform/agent",
    "ic-platform/certification",
]
icrc-host = [
    "ic-host-tools/agent",
    "certificate-host",
    "dep:futures-util",
    "ic-platform/agent",
    "ic-platform/candid-codec",
    "dep:ic-host-artifacts",
    "dep:ic-host-fs",
    "ic-platform/icrc-ledger-types",
]
nns-host = [
    "nns-topology-host",
    "certificate-host",
    "ic-host-tools/encoding",
    "ic-platform/candid-codec",
]
nns-topology-host = ["subnet-catalog-host"]
sns-host = [
    "ic-host-tools/agent",
    "ic-platform/agent",
    "ic-platform/candid-codec",
    "dep:ic-host-artifacts",
    "dep:ic-host-fs",
]
subnet-catalog-host = [
    "ic-host-tools/agent",
    "ic-host-tools/registry",
    "dep:futures-util",
    "ic-platform/agent",
    "ic-platform/candid-codec",
    "dep:ic-host-artifacts",
    "dep:ic-host-fs",
    "dep:prost",
    "dep:tokio",
    "serde/rc",
]

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

[[example]]
name = "governance_probe"
crate-type = ["cdylib"]
path = "tests/fixtures/governance_probe.rs"
test = false
required-features = ["canister"]

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

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

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

[dependencies.futures-util]
version = "0.3"
features = [
    "std",
    "async-await",
    "async-await-macro",
]
optional = true
default-features = false

[dependencies.ic-host-artifacts]
version = "0.77.1"
optional = true
default-features = false

[dependencies.ic-host-fs]
version = "0.77.1"
features = ["capability"]
optional = true
default-features = false

[dependencies.ic-host-http]
version = "0.77.1"
optional = true
default-features = false

[dependencies.ic-host-text]
version = "0.75.0"

[dependencies.ic-host-tools]
version = "0.92.0"
optional = true
default-features = false

[dependencies.ic-platform]
version = "0.32.2"
optional = true
default-features = false

[dependencies.ic-platform-types]
version = "0.20.2"
default-features = false

[dependencies.prost]
version = "0.14.3"
optional = true

[dependencies.reqwest]
version = "0.13.4"
features = ["rustls"]
optional = true
default-features = false

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2.0"

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

[dependencies.url]
version = "2.5.8"

[dev-dependencies.ic-wire]
version = "0.22.0"

[dev-dependencies.tokio]
version = "1.52.3"
features = [
    "rt",
    "macros",
    "time",
]

[dev-dependencies.toko-tooling]
version = "=0.42.5"

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.futures]
version = "0.3"
features = ["executor"]
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.ic-host-artifacts]
version = "0.77.1"
features = ["wasm"]
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.ic-host-fs]
version = "0.77.1"
features = ["test-support"]
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.ic-host-process]
version = "0.77.1"
features = ["test-support"]
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.ic-platform]
version = "0.32.2"
features = [
    "candid-codec",
    "ic-protocol-fixtures",
    "principal-self-authenticating",
]
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.tokio]
version = "1.52.3"
features = ["net"]

[target.'cfg(target_arch = "wasm32")'.dependencies.ic-platform-runtime]
version = "0.22.2"
optional = true
default-features = false

[lints.cargo]
missing_lints_inheritance = "deny"
unknown_lints = "deny"
unused_dependencies = "deny"
unused_workspace_dependencies = "deny"
unused_workspace_package_fields = "deny"

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

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

[lints.clippy.correctness]
level = "deny"
priority = -1

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

[lints.rust]
dead_code = "deny"
missing_docs = "warn"
unfulfilled_lint_expectations = "deny"
unsafe_code = "deny"
unsafe_op_in_unsafe_fn = "deny"
unused_must_use = "deny"

[lints.rustdoc]
broken_intra_doc_links = "deny"
invalid_markdown_table = "deny"