anda_web3_client 0.17.0

The Rust SDK for Web3 integration in non-TEE environments.
# 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 = "anda_web3_client"
version = "0.17.0"
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "The Rust SDK for Web3 integration in non-TEE environments."
readme = "README.md"
keywords = [
    "ai-agent",
    "icp",
    "tee",
]
categories = [
    "accessibility",
    "web-programming",
    "development-tools",
    "text-processing",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/ldclabs/anda/tree/main/anda_web3_client"
resolver = "2"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
_common = [
    "dep:anda_core",
    "dep:anda_engine",
    "dep:candid",
    "dep:cbor2",
    "dep:http",
    "dep:reqwest",
    "dep:ic_auth_types",
    "dep:ic_auth_verifier",
]
client = [
    "_common",
    "ic_auth_verifier/identity",
    "dep:hex",
    "dep:serde",
    "dep:tokio",
    "dep:zeroize",
    "dep:ic-agent",
    "dep:ic_cose",
    "dep:ic_cose_types",
    "dep:ic-ed25519",
    "dep:ic-secp256k1",
]
default = []
full = [
    "client",
    "tee",
]
tee = [
    "_common",
    "dep:anda_cloud_cdk",
    "dep:ic_tee_cdk",
    "dep:ic_tee_gateway_sdk",
]

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

[[example]]
name = "client"
path = "examples/client.rs"
required-features = ["client"]

[[test]]
name = "client_features"
path = "tests/client_features.rs"
required-features = ["client"]

[[test]]
name = "crypto_compatibility"
path = "tests/crypto_compatibility.rs"
required-features = [
    "client",
    "tee",
]

[[test]]
name = "crypto_vectors"
path = "tests/crypto_vectors.rs"
required-features = ["client"]

[[test]]
name = "tee_features"
path = "tests/tee_features.rs"
required-features = ["tee"]

[dependencies.anda_cloud_cdk]
version = "0.7"
optional = true

[dependencies.anda_core]
version = "0.17"
optional = true

[dependencies.anda_engine]
version = "0.17"
optional = true

[dependencies.candid]
version = "0.10"
optional = true

[dependencies.cbor2]
version = "1"
optional = true

[dependencies.hex]
version = "0.4"
optional = true

[dependencies.http]
version = "1.5"
optional = true

[dependencies.ic-agent]
version = "0.49"
optional = true

[dependencies.ic-ed25519]
version = "0.6"
optional = true

[dependencies.ic-secp256k1]
version = "0.3"
optional = true

[dependencies.ic_auth_types]
version = "0.10.5"
optional = true

[dependencies.ic_auth_verifier]
version = "0.10"
features = ["envelope"]
optional = true

[dependencies.ic_cose]
version = "0.11"
optional = true

[dependencies.ic_cose_types]
version = "0.11"
optional = true

[dependencies.ic_tee_cdk]
version = "0.8"
optional = true

[dependencies.ic_tee_gateway_sdk]
version = "0.8"
optional = true

[dependencies.reqwest]
version = "0.13"
features = [
    "rustls",
    "json",
    "gzip",
    "stream",
    "http2",
]
optional = true
default-features = true

[dependencies.serde]
version = "1"
features = ["derive"]
optional = true

[dependencies.tokio]
version = "1.53.3"
features = ["full"]
optional = true

[dependencies.zeroize]
version = "1"
optional = true

[dev-dependencies.axum]
version = "0.8"
features = [
    "http1",
    "http2",
    "json",
    "matched-path",
    "tokio",
    "query",
]
default-features = true

[dev-dependencies.tokio]
version = "1.53.3"
features = [
    "full",
    "test-util",
]