# 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"
rust-version = "1.86"
name = "ark-grpc"
version = "0.9.3"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "gRPC client for Ark server communication"
readme = "README.md"
keywords = [
    "ark",
    "arkade",
    "bitcoin",
    "wallet",
]
categories = ["cryptography::cryptocurrencies"]
license = "MIT"
repository = "https://github.com/arkade-os/rust-sdk"

[features]
default = ["tls-webpki-roots"]
test-utils = []
tls-native-roots = ["tonic/tls-native-roots"]
tls-webpki-roots = ["tonic/tls-webpki-roots"]

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

[dependencies.ark-core]
version = "0.9.3"

[dependencies.async-stream]
version = "0.3"
default-features = false

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

[dependencies.bitcoin]
version = "0.32.7"
default-features = false

[dependencies.futures]
version = "0.3"
default-features = false

[dependencies.log]
version = "0.4"

[dependencies.prost]
version = "0.14"
features = ["std"]
default-features = false

[dependencies.serde_json]
version = "1.0"

[dependencies.tonic]
version = "0.14"
features = [
    "transport",
    "codegen",
]
default-features = false

[dependencies.tonic-prost]
version = "0.14"

[build-dependencies.tonic-prost-build]
version = "0.14"

[lints.clippy]
dbg_macro = "warn"
large_enum_variant = "allow"
print_stderr = "warn"
print_stdout = "warn"
redundant_clone = "warn"
redundant_else = "warn"
too_many_arguments = "allow"
unnecessary_wraps = "warn"
unused_async = "warn"
unwrap_in_result = "warn"
unwrap_used = "warn"
wildcard_enum_match_arm = "warn"

[lints.rust]
unused-import-braces = "warn"
unused-qualifications = "warn"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(genproto)"]
