[package]
edition = "2024"
rust-version = "1.91.0"
name = "ic-query"
version = "0.75.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"
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]
canister = ["ic-platform/cdk"]
certificate-host = [
"dep:ic-host-tools",
"ic-platform/agent",
"ic-host-tools/certificate",
"ic-platform/certification",
]
certified-subnet-catalog-host = [
"certificate-host",
"subnet-catalog-host",
"ic-host-tools/encoding",
]
cloud-engine-host = [
"ic-host-tools/agent",
"ic-platform/agent",
]
cmc-host = [
"ic-host-tools/agent",
"certificate-host",
"ic-platform/agent",
]
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",
"dep:ic-host-artifacts",
"dep:ic-host-fs",
"ic-platform/icrc-ledger-types",
]
ledger-evidence-host = [
"certificate-host",
"ic-host-tools/ledger-evidence",
]
nns-host = [
"nns-topology-host",
"certified-subnet-catalog-host",
]
nns-topology-host = ["subnet-catalog-host"]
sns-host = [
"ic-host-tools/agent",
"dep:futures-util",
"ic-platform/agent",
"dep:ic-host-artifacts",
"dep:ic-host-fs",
"ic-platform/icrc-ledger-types",
]
subnet-catalog-host = [
"ic-host-tools/agent",
"ic-host-tools/registry",
"dep:futures-util",
"ic-platform/agent",
"dep:ic-host-artifacts",
"dep:ic-host-fs",
"dep:prost",
"dep:tokio",
]
[lib]
name = "ic_query"
path = "src/lib.rs"
[[example]]
name = "governance_probe"
crate-type = ["cdylib"]
path = "examples/governance_probe.rs"
test = false
required-features = ["canister"]
[[test]]
name = "cache_public_api"
path = "tests/cache_public_api.rs"
[[test]]
name = "certified_subnet_catalog_public_api"
path = "tests/certified_subnet_catalog_public_api.rs"
[[test]]
name = "cloud_engine_public_api"
path = "tests/cloud_engine_public_api.rs"
[[test]]
name = "downstream_usage"
path = "tests/downstream_usage.rs"
[[test]]
name = "ic_public_api"
path = "tests/ic_public_api.rs"
[[test]]
name = "icrc_public_api"
path = "tests/icrc_public_api.rs"
[[test]]
name = "ledger_evidence_public_api"
path = "tests/ledger_evidence_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"
[[test]]
name = "subnet_topology_public_api"
path = "tests/subnet_topology_public_api.rs"
[[test]]
name = "system_public_api"
path = "tests/system_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.69.0"
optional = true
default-features = false
[dependencies.ic-host-fs]
version = "0.69.0"
features = ["capability"]
optional = true
default-features = false
[dependencies.ic-host-http]
version = "0.69.0"
optional = true
default-features = false
[dependencies.ic-host-text]
version = "0.69.0"
[dependencies.ic-host-tools]
version = "0.69.0"
optional = true
default-features = false
[dependencies.ic-metrics]
version = "0.16.2"
[dependencies.ic-platform]
version = "0.7.0"
features = ["candid"]
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.7.16"
[dev-dependencies.serde_cbor]
version = "0.11.2"
[dev-dependencies.tokio]
version = "1.52.3"
features = [
"rt",
"macros",
"time",
]
[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.69.0"
features = ["wasm"]
default-features = false
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.ic-host-fs]
version = "0.69.0"
features = ["test-support"]
default-features = false
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.ic-host-process]
version = "0.69.0"
features = ["test-support"]
default-features = false
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.tokio]
version = "1.52.3"
features = ["net"]
[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"
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