# 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.91"
name = "blueprint-macros"
version = "0.2.0-alpha.2"
authors = ["Tangle Network"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Macros for the Tangle Blueprint SDK"
homepage = "https://tangle.tools"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/tangle-network/blueprint"

[package.metadata.cargo-public-api-crates]
allowed = []

[package.metadata.docs.rs]
all-features = true

[features]
__private = ["syn/visit-mut"]
default = []
evm = ["dep:serde_json"]

[lib]
name = "blueprint_macros"
path = "src/lib.rs"
proc-macro = true

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

[dependencies.quote]
version = "1.0"
default-features = false

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

[dependencies.syn]
version = "2.0"
features = [
    "full",
    "parsing",
    "extra-traits",
    "clone-impls",
    "printing",
    "proc-macro",
]
default-features = false

[dev-dependencies.rustversion]
version = "1.0.21"
default-features = false

[dev-dependencies.serde]
version = "1.0.208"
features = ["derive"]
default-features = false

[dev-dependencies.serde_json]
version = "1.0"
features = ["alloc"]
default-features = false

[dev-dependencies.tokio]
version = "^1"
features = ["full"]
default-features = false

[dev-dependencies.trybuild]
version = "1.0"
default-features = false

[lints.clippy]
assigning_clones = "allow"
bool_to_int_with_if = "allow"
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
cloned_instead_of_copied = "allow"
collapsible_else_if = "allow"
collapsible_if = "allow"
comparison_chain = "allow"
default_trait_access = "allow"
derivable_impls = "allow"
diverging_sub_expression = "allow"
doc_markdown = "allow"
double_must_use = "allow"
duplicated_attributes = "allow"
explicit_iter_loop = "allow"
field_reassign_with_default = "allow"
fn_params_excessive_bools = "allow"
format_push_string = "allow"
if_not_else = "allow"
ignore_without_reason = "allow"
ignored_unit_patterns = "allow"
implicit_clone = "allow"
implicit_hasher = "allow"
inconsistent_struct_constructor = "allow"
items_after_statements = "allow"
large_enum_variant = "allow"
large_futures = "allow"
manual_div_ceil = "allow"
manual_inspect = "allow"
manual_let_else = "allow"
manual_range_contains = "allow"
manual_string_new = "allow"
map_unwrap_or = "allow"
match_same_arms = "allow"
match_wildcard_for_single_variants = "allow"
missing_errors_doc = "allow"
missing_fields_in_debug = "allow"
missing_panics_doc = "allow"
must_use_candidate = "allow"
needless_borrows_for_generic_args = "allow"
needless_continue = "allow"
needless_pass_by_value = "allow"
needless_raw_string_hashes = "allow"
no_effect_underscore_binding = "allow"
option_as_ref_cloned = "allow"
print_literal = "allow"
redundant_closure = "allow"
redundant_closure_for_method_calls = "allow"
redundant_else = "allow"
redundant_slicing = "allow"
result_large_err = "allow"
return_self_not_must_use = "allow"
semicolon_if_nothing_returned = "allow"
similar_names = "allow"
single_char_pattern = "allow"
single_match_else = "allow"
struct_excessive_bools = "allow"
too_many_arguments = "allow"
too_many_lines = "allow"
transmute_ptr_to_ptr = "allow"
trivially_copy_pass_by_ref = "allow"
type_complexity = "allow"
unchecked_duration_subtraction = "allow"
uninlined_format_args = "allow"
unnecessary_debug_formatting = "allow"
unnecessary_filter_map = "allow"
unnecessary_map_or = "allow"
unnecessary_wraps = "allow"
unnested_or_patterns = "allow"
unreadable_literal = "allow"
unused_async = "allow"
unused_self = "allow"
used_underscore_binding = "allow"
wildcard_imports = "allow"
wrong_self_convention = "allow"

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

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

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

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

[lints.rustdoc]
broken_intra_doc_links = "deny"
