# 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 = "quicknode-sdk"
version = "0.1.0-alpha.25"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core library for quicknode sdk"
readme = "README.md"
keywords = [
    "quicknode",
    "blockchain",
    "web3",
    "sdk",
]
categories = [
    "api-bindings",
    "web-programming",
]
license = "MIT"
repository = "https://github.com/quiknode-labs/sdk"

[features]
extension-module = ["pyo3/extension-module"]
node = [
    "napi",
    "napi-derive",
]
python = [
    "pyo3",
    "pyo3-async-runtimes",
    "pyo3-stub-gen",
]
ruby = ["magnus"]
rust = ["bon"]

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

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

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

[[example]]
name = "kvstore_e2e"
path = "examples/kvstore_e2e.rs"

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

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

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

[dependencies.bon]
version = "3.9"
optional = true

[dependencies.config]
version = "0.15"

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

[dependencies.napi]
version = "3"
features = [
    "async",
    "tokio_rt",
    "compat-mode",
    "async",
    "tokio_rt",
]
optional = true

[dependencies.napi-derive]
version = "3"
features = ["compat-mode"]
optional = true

[dependencies.pyo3]
version = "0.27"
features = [
    "experimental-async",
    "experimental-async",
]
optional = true

[dependencies.pyo3-async-runtimes]
version = "0.27"
features = [
    "tokio-runtime",
    "tokio-runtime",
]
optional = true

[dependencies.pyo3-stub-gen]
version = "0.19.0"
optional = true

[dependencies.reqwest]
version = "0.13.2"
features = [
    "json",
    "query",
    "rustls",
    "http2",
]
default-features = false

[dependencies.secrecy]
version = "0.8"

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "1.0"

[dependencies.url]
version = "2.5.8"

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

[dev-dependencies.wiremock]
version = "0.6"

[lints.clippy]
expect_used = "deny"
inefficient_to_string = "warn"
map_unwrap_or = "warn"
needless_pass_by_value = "warn"
panic = "deny"
redundant_closure_for_method_calls = "warn"
unwrap_used = "deny"

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