# 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 = "near-async-derive"
version = "0.29.1"
authors = ["Near Inc <hello@nearprotocol.com>"]
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "This crate contains derive macros for near-async"
readme = false
license = "MIT OR Apache-2.0"
repository = "https://github.com/near/nearcore"

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

[dependencies.proc-macro2]
version = "1.0.64"

[dependencies.quote]
version = "1.0"

[dependencies.syn]
version = "2.0.4"
features = [
    "extra-traits",
    "full",
]

[dev-dependencies.pretty_assertions]
version = "1.2"

[lints.clippy]
clone_on_copy = "deny"
derivable_impls = "deny"
len_zero = "deny"
or_fun_call = "deny"
redundant_clone = "deny"
single_char_pattern = "allow"
unnecessary_lazy_evaluations = "deny"

[lints.clippy.all]
level = "allow"
priority = -100

[lints.clippy.correctness]
level = "deny"
priority = -50

[lints.clippy.perf]
level = "deny"
priority = -50

[lints.clippy.suspicious]
level = "deny"
priority = -50

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