# 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 = "2021"
name = "keetanetwork-anchor-client"
version = "0.2.0"
authors = ["Tanveer Wahid <twahid@keeta.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Transport-agnostic KeetaNet anchor client: request signing byte-compatible with the TypeScript reference"
homepage = "https://github.com/KeetaNetwork/anchor-rs"
readme = false
license-file = "LICENSE"
repository = "https://github.com/KeetaNetwork/anchor-rs"

[features]
asset = ["service"]
codec = [
    "dep:serde",
    "dep:serde_json",
    "dep:keetanetwork-client",
]
default = ["std"]
fx = ["service"]
http = [
    "service",
    "dep:reqwest",
    "reqwest/json",
]
kyc = ["service"]
resilience = ["dep:spin"]
service = [
    "codec",
    "dep:percent-encoding",
]
std = [
    "http",
    "kyc",
    "dep:tokio",
    "reqwest/rustls",
    "snafu/std",
    "base64/std",
    "serde?/std",
    "serde_json?/std",
    "url/std",
    "percent-encoding?/std",
    "keetanetwork-anchor/std",
    "keetanetwork-account/std",
    "keetanetwork-client/std",
]
storage = ["service"]
trust = [
    "codec",
    "keetanetwork-anchor/x509",
    "keetanetwork-anchor/chrono",
    "dep:keetanetwork-x509",
    "dep:chrono",
]
wasi = ["service"]
wasm = [
    "http",
    "keetanetwork-client/http",
    "keetanetwork-client/wasm",
]

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

[[test]]
name = "account_certificates"
path = "tests/account_certificates.rs"
required-features = ["trust"]

[[test]]
name = "asset_movement"
path = "tests/asset_movement.rs"
required-features = ["asset"]

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

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

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

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

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

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

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

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

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

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

[dependencies.async-trait]
version = "0.1.89"

[dependencies.base64]
version = "0.22.1"
features = ["alloc"]
default-features = false

[dependencies.chrono]
version = "0.4.45"
features = [
    "serde",
    "alloc",
]
optional = true
default-features = false

[dependencies.keetanetwork-account]
version = "0.4.0"
features = ["rasn"]
default-features = false

[dependencies.keetanetwork-anchor]
version = "0.2.0"
features = ["signing"]
default-features = false

[dependencies.keetanetwork-client]
version = "0.4.0"
optional = true
default-features = false

[dependencies.keetanetwork-x509]
version = "0.4.0"
features = [
    "rasn",
    "alloc",
]
optional = true
default-features = false

[dependencies.miniz_oxide]
version = "0.9.1"
features = ["with-alloc"]
default-features = false

[dependencies.percent-encoding]
version = "2.3"
features = ["alloc"]
optional = true
default-features = false

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

[dependencies.serde]
version = "1.0.228"
features = [
    "derive",
    "derive",
]
optional = true
default-features = false

[dependencies.serde_json]
version = "1.0.150"
features = ["alloc"]
optional = true
default-features = false

[dependencies.snafu]
version = "0.8.7"
default-features = false

[dependencies.spin]
version = "0.12.1"
features = [
    "mutex",
    "spin_mutex",
]
optional = true
default-features = false

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

[dependencies.url]
version = "2.5"
default-features = false

[dev-dependencies.async-trait]
version = "0.1.89"

[dev-dependencies.base64]
version = "0.22.1"
features = ["std"]
default-features = false

[dev-dependencies.chrono]
version = "0.4.45"
features = [
    "serde",
    "std",
    "clock",
]
default-features = false

[dev-dependencies.hex]
version = "0.4.3"
features = ["std"]
default-features = false

[dev-dependencies.keetanetwork-account]
version = "0.4.0"
features = [
    "std",
    "rasn",
]
default-features = false

[dev-dependencies.keetanetwork-anchor]
version = "0.2.0"
features = [
    "std",
    "signing",
    "serde",
    "chrono",
]
default-features = true

[dev-dependencies.keetanetwork-asn1]
version = "0.2.5"
features = ["rasn"]
default-features = false

[dev-dependencies.keetanetwork-crypto]
version = "0.3.0"
features = [
    "std",
    "signature",
    "encryption",
    "rasn",
]
default-features = false

[dev-dependencies.keetanetwork-utils]
version = "0.2.1"
features = ["std"]
default-features = false

[dev-dependencies.keetanetwork-x509]
version = "0.4.0"
features = [
    "std",
    "rasn",
]
default-features = false

[dev-dependencies.serde]
version = "1.0.228"
features = [
    "derive",
    "std",
    "derive",
]
default-features = false

[dev-dependencies.serde_json]
version = "1.0.150"
features = ["std"]
default-features = false

[dev-dependencies.snafu]
version = "0.8.7"
features = ["std"]
default-features = false

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

[target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dependencies.gloo-timers]
version = "0.4.0"
features = ["futures"]

[target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dependencies.js-sys]
version = "0.3.102"

[target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dependencies.wasm-bindgen-futures]
version = "0.4.75"

[target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dependencies.web-sys]
version = "0.3.102"
features = [
    "Window",
    "Performance",
]

[target.'cfg(target_os = "wasi")'.dependencies.wstd]
version = "0.6.7"
