# 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"
rust-version = "1.88"
name = "blueprint-contexts"
version = "0.1.0-alpha.21"
authors = ["Tangle Network"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Context providers for Tangle Blueprints"
homepage = "https://tangle.tools"
readme = false
license = "MIT OR Apache-2.0"
repository = "https://github.com/tangle-network/blueprint"

[features]
default = [
    "std",
    "keystore",
]
eigenlayer = ["blueprint-clients/eigenlayer"]
evm = ["blueprint-clients/evm"]
keystore = ["dep:blueprint-keystore"]
networking = [
    "dep:blueprint-networking",
    "dep:proc-macro2",
]
std = [
    "blueprint-runner/std",
    "blueprint-std/std",
    "blueprint-clients/std",
    "blueprint-keystore?/std",
    "blueprint-networking?/std",
    "tangle-subxt?/std",
]
tangle = [
    "dep:tangle-subxt",
    "blueprint-clients/tangle",
]
web = ["tangle-subxt?/web"]

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

[dependencies.blueprint-clients]
version = "0.1.0-alpha.21"
default-features = false

[dependencies.blueprint-keystore]
version = "0.1.0-alpha.15"
optional = true
default-features = false

[dependencies.blueprint-networking]
version = "0.1.0-alpha.15"
optional = true
default-features = false

[dependencies.blueprint-runner]
version = "0.1.0-alpha.20"
default-features = false

[dependencies.blueprint-std]
version = "0.1.0-alpha.4"
default-features = false

[dependencies.proc-macro2]
version = "1.0"
optional = true
default-features = false

[dependencies.tangle-subxt]
version = "0.24.0"
optional = true
default-features = false

[lints.clippy]
assigning_clones = "allow"
ignore_without_reason = "allow"
items_after_statements = "allow"
large_enum_variant = "allow"
match_wildcard_for_single_variants = "allow"
needless_late_init = "allow"
result_large_err = "allow"
similar_names = "allow"
single_match_else = "allow"
struct_excessive_bools = "allow"
too_many_lines = "allow"
transmute_ptr_to_ptr = "allow"
uninlined_format_args = "allow"

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

[lints.clippy.pedantic]
level = "deny"
priority = -1

[lints.rust]
async_fn_in_trait = "allow"
trivial_casts = "deny"
trivial_numeric_casts = "deny"
unused_import_braces = "deny"

[lints.rust.rust_2018_idioms]
level = "deny"
priority = -1

[lints.rustdoc]
broken_intra_doc_links = "deny"
